From 4a2bc3299ae1e07e3cea92160824f205f6242677 Mon Sep 17 00:00:00 2001 From: Raphfrk Date: Sat, 12 Mar 2011 21:28:38 +0000 Subject: [PATCH] Fixed setTypeIdAndData sending client updates when not using physics --- src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 35d3ebc5c8..c6d382a736 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; } }