mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Don't call super update on unplaced command block metas
This commit is contained in:
parent
962ffda1a8
commit
eac85911f0
@ -44,7 +44,7 @@ public class CraftCommandBlock extends CraftBlockState implements CommandBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean update(boolean force, boolean applyPhysics) {
|
public boolean update(boolean force, boolean applyPhysics) {
|
||||||
boolean result = super.update(force, applyPhysics);
|
boolean result = (isPlaced()) ? super.update(force, applyPhysics) : true;
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
commandBlock.getCommandBlock().setCommand(command);
|
commandBlock.getCommandBlock().setCommand(command);
|
||||||
|
Loading…
Reference in New Issue
Block a user