From a79c1fc577dc58008319e7374614f0f950a92d7d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 22 Jun 2013 13:59:56 +1000 Subject: [PATCH] Integer cannot be cast to Short :( --- CraftBukkit-Patches/0019-Orebfuscator.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CraftBukkit-Patches/0019-Orebfuscator.patch b/CraftBukkit-Patches/0019-Orebfuscator.patch index 2ae0be0..081f6be 100644 --- a/CraftBukkit-Patches/0019-Orebfuscator.patch +++ b/CraftBukkit-Patches/0019-Orebfuscator.patch @@ -1,4 +1,4 @@ -From f9b52ad834a62522ab547a804d3039c43ed2a9f8 Mon Sep 17 00:00:00 2001 +From 8a73fd5e8b75b6438a2cc7fbcd6d69c69b1f7264 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 16 May 2013 18:51:05 +1000 Subject: [PATCH] Orebfuscator @@ -108,7 +108,7 @@ index 1243d1d..9ec8997 100644 diff --git a/src/main/java/org/spigotmc/AntiXray.java b/src/main/java/org/spigotmc/AntiXray.java new file mode 100644 -index 0000000..74ee741 +index 0000000..c29b789 --- /dev/null +++ b/src/main/java/org/spigotmc/AntiXray.java @@ -0,0 +1,203 @@ @@ -133,7 +133,7 @@ index 0000000..74ee741 + public AntiXray(SpigotWorldConfig config) + { + // Set all listed blocks as true to be obfuscated -+ for ( short id : config.blocks ) ++ for ( int id : config.blocks ) + { + obfuscateBlocks[id] = true; + } @@ -316,7 +316,7 @@ index 0000000..74ee741 + } +} diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java -index d7e9794..660c660 100644 +index d7e9794..3525e9b 100644 --- a/src/main/java/org/spigotmc/SpigotWorldConfig.java +++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java @@ -1,5 +1,6 @@ @@ -333,7 +333,7 @@ index d7e9794..660c660 100644 + + public boolean antiXray = true; + public int engineMode = 1; -+ public List blocks = Arrays.asList( new Short[] ++ public List blocks = Arrays.asList( new Integer[] + { + 1, 5, 14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130 + } );