mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
And chests...
This commit is contained in:
parent
c79ce8ec88
commit
1999f357bc
@ -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);
|
||||
+ }
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user