From eac85911f0f4c4252676515dbc1c4db938dde8df Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 10 Mar 2017 20:30:20 +1100 Subject: [PATCH] Don't call super update on unplaced command block metas --- .../java/org/bukkit/craftbukkit/block/CraftCommandBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftCommandBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftCommandBlock.java index 9bbc790509..a6253bcee6 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftCommandBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftCommandBlock.java @@ -44,7 +44,7 @@ public class CraftCommandBlock extends CraftBlockState implements CommandBlock { } public boolean update(boolean force, boolean applyPhysics) { - boolean result = super.update(force, applyPhysics); + boolean result = (isPlaced()) ? super.update(force, applyPhysics) : true; if (result) { commandBlock.getCommandBlock().setCommand(command);