Gummy Swets restore hunger instead of health.

This commit is contained in:
bconlon 2020-07-03 16:58:31 -07:00
parent 4bc8dfb309
commit 5570145f16

View file

@ -56,18 +56,4 @@ public class ItemGummySwet extends ItemAetherFood {
subItems.add(new ItemStack(this, 1, 0));
subItems.add(new ItemStack(this, 1, 1));
}
@Override
public ItemStack onItemRightClick(ItemStack stackIn, World worldIn, EntityPlayer playerIn) {
ItemStack heldItem = playerIn.getHeldItem();
playerIn.heal(playerIn.getMaxHealth());
if (!playerIn.capabilities.isCreativeMode) {
--heldItem.stackSize;
}
return heldItem;
}
}