Fixed Moa Health

This commit is contained in:
Jon 2019-03-14 20:21:34 -05:00
parent 28336ccf92
commit 90dce0cbd2

View file

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