Skip to content

Commit

Permalink
setFoodSaturationLevel is client side only! Whoops! Fixes #100
Browse files Browse the repository at this point in the history
  • Loading branch information
pkmnfrk committed Nov 13, 2018
1 parent 11bb510 commit b7832dd
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,8 @@ private static void handleHunger(EntityPlayer player, Corporation corp, IPlayerR
//MegaCorpMod.logger.info("Feeding after {} ticks", ticks);

FoodStats food = player.getFoodStats();
if(food.needFood()){
food.setFoodLevel(food.getFoodLevel() + 1);
}
else if(food.getSaturationLevel() < 20)
{
food.setFoodSaturationLevel(food.getSaturationLevel() + 1);
}

food.addStats(1, 0.5f);
}

rewards.setHungerRestore(hungerTicks);
Expand Down

0 comments on commit b7832dd

Please sign in to comment.