From b0e61fbd114c1f8cc26950bc296952a83d5ecd14 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 29 Aug 2023 21:28:21 +0100 Subject: [PATCH] Fixed unable to cast at low health when in creative mode --- .../java/com/minelittlepony/unicopia/entity/player/Pony.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java index 2d0ad5d9..2ab2efe7 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java @@ -735,7 +735,7 @@ public class Pony extends Living implements Copyable, 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) {