From 28fb514a4de97047f5307590f8b966119b06f840 Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Mon, 29 Apr 2013 08:46:31 +0100 Subject: [PATCH] Send block updates even when applyPhysics is false. Fixes BUKKIT-3971 The CraftBlock class is setting bit 0x4 of the update flag when bit 0x2 should in fact be set here. Bit 0x2 means "do updates"; bit 0x4 means "don't do updates if the world is static, even when bit 0x2 is set". --- src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 9afe6aef47..5a88d71023 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -92,7 +92,7 @@ public class CraftBlock implements Block { if (applyPhysics) { chunk.getHandle().world.setData(x, y, z, data, 3); } else { - chunk.getHandle().world.setData(x, y, z, data, 4); + chunk.getHandle().world.setData(x, y, z, data, 2); } } @@ -112,7 +112,7 @@ public class CraftBlock implements Block { if (applyPhysics) { return setTypeId(type); } else { - return chunk.getHandle().world.setTypeIdAndData(x, y, z, type, getData(), 4); + return chunk.getHandle().world.setTypeIdAndData(x, y, z, type, getData(), 2); } } @@ -120,7 +120,7 @@ public class CraftBlock implements Block { if (applyPhysics) { return chunk.getHandle().world.setTypeIdAndData(x, y, z, type, data, 3); } else { - boolean success = chunk.getHandle().world.setTypeIdAndData(x, y, z, type, data, 4); + boolean success = chunk.getHandle().world.setTypeIdAndData(x, y, z, type, data, 2); if (success) { chunk.getHandle().world.notify(x, y, z); }