diff --git a/CraftBukkit-Patches/0068-Orebfuscator.patch b/CraftBukkit-Patches/0068-Orebfuscator.patch index 1db554e..4f16127 100644 --- a/CraftBukkit-Patches/0068-Orebfuscator.patch +++ b/CraftBukkit-Patches/0068-Orebfuscator.patch @@ -1,4 +1,4 @@ -From b1f48210131c8ca7b879452ca7b60a4bd578a826 Mon Sep 17 00:00:00 2001 +From 7fc2e775270cd5909fc9dd80b84c4883a2226df5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 16 May 2013 18:51:05 +1000 Subject: [PATCH] Orebfuscator @@ -86,10 +86,10 @@ index 5b0875d..1aca7f6 100644 public void b(int i, int j, int k, Block block, int l) { diff --git a/src/main/java/org/spigotmc/AntiXray.java b/src/main/java/org/spigotmc/AntiXray.java new file mode 100644 -index 0000000..8230ff1 +index 0000000..30280d4 --- /dev/null +++ b/src/main/java/org/spigotmc/AntiXray.java -@@ -0,0 +1,188 @@ +@@ -0,0 +1,189 @@ +package org.spigotmc; + +import gnu.trove.set.TByteSet; @@ -122,11 +122,12 @@ index 0000000..8230ff1 + { + Block block = Block.e( i ); + // Check it exists and is not a tile entity -+ if ( block != null && !block.isTileEntity() ) ++ if ( block != null && block.isTileEntity() ) + { -+ // Add it to the set of replacement blocks -+ blocks.add( (byte) (int) i ); ++ continue; + } ++ // Add it to the set of replacement blocks ++ blocks.add( (byte) (int) i ); + } + // Bake it to a flat array of replacements + replacementOres = blocks.toArray();