Fixed unable to cast at low health when in creative mode

This commit is contained in:
Sollace 2023-08-29 21:28:21 +01:00
parent 1c0ada5ae9
commit b0e61fbd11
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -735,7 +735,7 @@ public class Pony extends Living<PlayerEntity> implements Copyable<Pony>, Update
directTakeEnergy(foodSubtract);
return entity.getHealth() > 1 && mana.getMana().getPercentFill() > 0.1F;
return entity.isCreative() || (entity.getHealth() > 1 && mana.getMana().getPercentFill() > 0.1F);
}
protected void directTakeEnergy(double foodSubtract) {