We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c0eacf commit 867aaa2Copy full SHA for 867aaa2
src/main/java/ca/wescook/nutrition/events/EventEatFood.java
@@ -64,7 +64,9 @@ public void onFoodEaten(FoodEvent.FoodEaten event) {
64
if (!event.player.getEntityWorld().isRemote) { // Server
65
PlayerDataHandler.getForPlayer(event.player)
66
.add(foundNutrients, nutritionValue);
67
- } else { // Client
+ }
68
+
69
+ if (Nutrition.proxy.isClient()) { // Client
70
ClientProxy.localNutrition.add(foundNutrients, nutritionValue);
71
// set that food has now been eaten
72
ClientProxy.popHungerChange();
0 commit comments