diff options
author | Raphfrk <raphfrk@gmail.com> | 2011-03-12 21:28:38 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-14 11:31:43 +0000 |
commit | 4a2bc3299ae1e07e3cea92160824f205f6242677 (patch) | |
tree | 11a46fbfdf346c9f7dfe3444b02c8f50e553ea49 /src/main/java | |
parent | 7242f21a32c29be9b42240f92e4d29249732229f (diff) | |
download | craftbukkit-4a2bc3299ae1e07e3cea92160824f205f6242677.tar craftbukkit-4a2bc3299ae1e07e3cea92160824f205f6242677.tar.gz craftbukkit-4a2bc3299ae1e07e3cea92160824f205f6242677.tar.lz craftbukkit-4a2bc3299ae1e07e3cea92160824f205f6242677.tar.xz craftbukkit-4a2bc3299ae1e07e3cea92160824f205f6242677.zip |
Fixed setTypeIdAndData sending client updates when not using physics
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 35d3ebc5..c6d382a7 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -139,7 +139,11 @@ public class CraftBlock implements Block { if (applyPhysics) { return chunk.getHandle().d.b(x, y, z, type, data); } else { - return chunk.getHandle().d.setTypeIdAndData(x, y, z, type, data); + boolean success = chunk.getHandle().d.setTypeIdAndData(x, y, z, type, data); + if(success) { + chunk.getHandle().d.g(x, y, z); + } + return success; } } |