13
0
geforkt von Mirrors/Paper

Don't call super update on unplaced command block metas

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2017-03-10 20:30:20 +11:00
Ursprung 0df899a244
Commit 843a9ac2db

Datei anzeigen

@ -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);