Fixed Moa Health

This commit is contained in:
Jon 2019-03-14 20:21:34 -05:00
parent 28336ccf92
commit 90dce0cbd2
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,7 @@ public class EntityMoa extends EntitySaddleMount {
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.0D);
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(35.0D);
}
public boolean isSitting() {
@ -139,6 +140,7 @@ public class EntityMoa extends EntitySaddleMount {
return (int) this.dataWatcher.getWatchableObjectByte(21);
}
public void setRemainingJumps(int jumps) {
this.dataWatcher.updateObject(21, (byte) jumps);
}