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