Allow disabling armor stand ticking
This commit is contained in:
1 parent
510b8187c7
commit
c0a3a0d12c
2 files changed
+138
-26
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user