Allow disabling armor stand ticking

This commit is contained in:
Riley Park
2018-08-15 01:26:09 -07:00
parent 510b8187c7
commit c0a3a0d12c
2 changed files with 138 additions and 26 deletions

View File

@@ -232,5 +232,16 @@ public class CraftArmorStand extends CraftLivingEntity implements ArmorStand {
public void setCanMove(boolean move) {
getHandle().canMove = move;
}
@Override
public boolean canTick() {
return this.getHandle().canTick;
}
@Override
public void setCanTick(final boolean tick) {
this.getHandle().canTick = tick;
this.getHandle().canTickSetByAPI = true;
}
// Paper end
}