From 46188f9d1cd78a3ad23c58edc2dc9d6e68ae7498 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 30 Sep 2013 21:54:44 +1000 Subject: [PATCH] Catch all cases of updating with regards to falling blocks and anti xray --- CraftBukkit-Patches/0018-Orebfuscator.patch | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0018-Orebfuscator.patch b/CraftBukkit-Patches/0018-Orebfuscator.patch index 0e1dbd55e5..1ee0b71adb 100644 --- a/CraftBukkit-Patches/0018-Orebfuscator.patch +++ b/CraftBukkit-Patches/0018-Orebfuscator.patch @@ -1,11 +1,11 @@ -From 3c7f43e649d3e15939a321426a27eb5dbabddfea Mon Sep 17 00:00:00 2001 +From 57f7e3af097da4a29c45f5de59a406b8a4b2a738 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 16 May 2013 18:51:05 +1000 Subject: [PATCH] Orebfuscator diff --git a/src/main/java/net/minecraft/server/EntityFallingBlock.java b/src/main/java/net/minecraft/server/EntityFallingBlock.java -index daa376c..79c94dc 100644 +index b552421..8617474 100644 --- a/src/main/java/net/minecraft/server/EntityFallingBlock.java +++ b/src/main/java/net/minecraft/server/EntityFallingBlock.java @@ -86,6 +86,7 @@ public class EntityFallingBlock extends Entity { @@ -16,6 +16,14 @@ index daa376c..79c94dc 100644 } if (this.onGround) { +@@ -101,6 +102,7 @@ public class EntityFallingBlock extends Entity { + } + this.world.setTypeIdAndData(i, j, k, this.id, this.data, 3); + // CraftBukkit end ++ world.spigotConfig.antiXrayInstance.updateNearbyBlocks(world, i, j, k); // Spigot + + if (Block.byId[this.id] instanceof BlockSand) { + ((BlockSand) Block.byId[this.id]).a_(this.world, i, j, k, this.data); diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java index 758d447..1d1c88c 100644 --- a/src/main/java/net/minecraft/server/Explosion.java @@ -95,7 +103,7 @@ index 04c44fc..a6e3be2 100644 Deflater deflater = localDeflater.get(); deflater.reset(); diff --git a/src/main/java/net/minecraft/server/PlayerInteractManager.java b/src/main/java/net/minecraft/server/PlayerInteractManager.java -index a7afa55..1a60229 100644 +index 16420e4..db2e2a7 100644 --- a/src/main/java/net/minecraft/server/PlayerInteractManager.java +++ b/src/main/java/net/minecraft/server/PlayerInteractManager.java @@ -184,6 +184,7 @@ public class PlayerInteractManager {