diff options
author | Des Herriott <des.herriott@gmail.com> | 2013-04-29 08:46:31 +0100 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2013-05-02 16:42:47 -0600 |
commit | 28fb514a4de97047f5307590f8b966119b06f840 (patch) | |
tree | 8fa6ef69206b9c597b16b8fff55db84a83af89a2 /src | |
parent | 4e7ad051110d31b216b97e393ec905cce5bd47ed (diff) | |
download | craftbukkit-28fb514a4de97047f5307590f8b966119b06f840.tar craftbukkit-28fb514a4de97047f5307590f8b966119b06f840.tar.gz craftbukkit-28fb514a4de97047f5307590f8b966119b06f840.tar.lz craftbukkit-28fb514a4de97047f5307590f8b966119b06f840.tar.xz craftbukkit-28fb514a4de97047f5307590f8b966119b06f840.zip |
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".
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 6 |
1 files 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 9afe6aef..5a88d710 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); } |