Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Integer hongerBar = FoodMain.pl.getConfig().getInt(foodName + ".HungerBar");
- Integer hongerRequired = 20 - p.getFoodLevel();
- if (hongerBar > hongerRequired) {
- hongerBar = hongerRequired;
- }
- Integer Saturation = FoodMain.pl.getConfig().getInt(foodName + ".HungerBar") - hongerBar;
- p.setSaturation(p.getSaturation()+Saturation);
- p.setFoodLevel(p.getFoodLevel() + hongerBar);
Advertisement
Add Comment
Please, Sign In to add comment