Skip to content

Commit

Permalink
Merge branch '1.10.0' of https://github.com/squeek502/AppleCore into …
Browse files Browse the repository at this point in the history
…1.10.2
  • Loading branch information
squeek502 committed Sep 7, 2016
2 parents b067e8b + cff550c commit 86cf48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/squeek/applecore/asm/Hooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86cf48b

Please sign in to comment.