diff --git a/java/squeek/applecore/asm/Hooks.java b/java/squeek/applecore/asm/Hooks.java index 6779da9..4db8c1d 100644 --- a/java/squeek/applecore/asm/Hooks.java +++ b/java/squeek/applecore/asm/Hooks.java @@ -54,7 +54,7 @@ public static boolean onAppleCoreFoodStatsUpdate(FoodStats foodStats, EntityPlay } } - boolean hasNaturalRegen = player.worldObj.getGameRules().hasRule("naturalRegeneration"); + boolean hasNaturalRegen = player.worldObj.getGameRules().getBoolean("naturalRegeneration"); Result allowSaturatedRegenResult = Hooks.fireAllowSaturatedRegenEvent(player); boolean shouldDoSaturatedRegen = allowSaturatedRegenResult == Result.ALLOW || (allowSaturatedRegenResult == Result.DEFAULT && hasNaturalRegen && foodStats.getSaturationLevel() > 0.0F && player.shouldHeal() && foodStats.getFoodLevel() >= 20);