Fixed eating spider eye. Yay!

This commit is contained in:
Mysticate 2015-08-30 18:39:07 -04:00
parent 046fa4f8b6
commit 33d78a5efd

View File

@ -849,11 +849,17 @@ public class GameFlagManager implements Listener
if (game.HungerSet != -1) if (game.HungerSet != -1)
for (Player player : game.GetPlayers(true)) for (Player player : game.GetPlayers(true))
{
player.setFoodLevel(game.HungerSet); player.setFoodLevel(game.HungerSet);
player.setSaturation(1F);
}
if (game.HealthSet != -1) if (game.HealthSet != -1)
for (Player player : game.GetPlayers(true)) for (Player player : game.GetPlayers(true))
{
player.setHealth(game.HealthSet); player.setHealth(game.HealthSet);
player.setSaturation(1F);
}
} }
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.LOWEST)