Fix #5 Infiniapple Server Crash
This commit is contained in:
parent
88b3e6e908
commit
db8396c204
1 changed files with 0 additions and 3 deletions
|
|
@ -17,9 +17,6 @@ public class InfiniAppleEvent
|
||||||
|
|
||||||
if (player.inventory.hasItem(LibItems.infiniApple))
|
if (player.inventory.hasItem(LibItems.infiniApple))
|
||||||
if (player.getFoodStats() != null)
|
if (player.getFoodStats() != null)
|
||||||
{
|
|
||||||
player.getFoodStats().setFoodLevel(20);
|
player.getFoodStats().setFoodLevel(20);
|
||||||
player.getFoodStats().setFoodSaturationLevel(5.0F);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue