And chests...

This commit is contained in:
md_5 2013-02-16 10:24:25 +11:00
parent c79ce8ec88
commit 1999f357bc
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
From 3143a832c4b33f687ff42159c04e70b1d1e4ddc9 Mon Sep 17 00:00:00 2001
From 9431957f1fc3c43421a833933b98259214ccf022 Mon Sep 17 00:00:00 2001
From: lishid <lishid@gmail.com>
Date: Sat, 16 Feb 2013 10:05:25 +1100
Subject: [PATCH] Add oreobfuscator for Spigot.
@ -157,7 +157,7 @@ index 94e07fe..21bd64a 100644
public int cactusGrowthModifier = 100;
diff --git a/src/main/java/org/bukkit/craftbukkit/OrebfuscatorManager.java b/src/main/java/org/bukkit/craftbukkit/OrebfuscatorManager.java
new file mode 100644
index 0000000..a93b054
index 0000000..3e74103
--- /dev/null
+++ b/src/main/java/org/bukkit/craftbukkit/OrebfuscatorManager.java
@@ -0,0 +1,130 @@
@ -195,7 +195,7 @@ index 0000000..a93b054
+ List<Byte> blocks = new ArrayList<Byte>();
+ for (int i = 0; i < obfuscateBlocks.length; i++) {
+ if (obfuscateBlocks[i]) {
+ if (i != Block.STONE.id && i != Block.ENDER_CHEST.id) {
+ if (i != Block.STONE.id && i != Block.CHEST.id && i != Block.ENDER_CHEST.id) {
+ blocks.add((byte) i);
+ }
+ }