Fix eating 2 food instead of 1

This commit is contained in:
Exidex 2017-04-10 16:49:26 +02:00
parent dcf73d5e4b
commit 67e4fbb6ef

View file

@ -317,7 +317,6 @@ public abstract class GT_MetaGenerated_Item extends GT_MetaBase_Item {
EntityPlayer entityplayer = (EntityPlayer) entityLiving; EntityPlayer entityplayer = (EntityPlayer) entityLiving;
IFoodStat tStat = mFoodStats.get((short) getDamage(stack)); IFoodStat tStat = mFoodStats.get((short) getDamage(stack));
if (tStat != null) { if (tStat != null) {
--stack.stackSize;
entityplayer.getFoodStats().addStats(tStat.getFoodLevel(this, stack, entityplayer), tStat.getSaturation(this, stack, entityplayer)); entityplayer.getFoodStats().addStats(tStat.getFoodLevel(this, stack, entityplayer), tStat.getSaturation(this, stack, entityplayer));
tStat.onEaten(this, stack, entityplayer); tStat.onEaten(this, stack, entityplayer);
} }