diff --git a/src/main/java/micdoodle8/mods/galacticraft/core/items/ItemFood.java b/src/main/java/micdoodle8/mods/galacticraft/core/items/ItemFood.java index e7e4a860b6..3dee55238b 100644 --- a/src/main/java/micdoodle8/mods/galacticraft/core/items/ItemFood.java +++ b/src/main/java/micdoodle8/mods/galacticraft/core/items/ItemFood.java @@ -169,7 +169,7 @@ public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityLivingBas worldIn.playSound(null, entityLiving.posX, entityLiving.posY, entityLiving.posZ, SoundEvents.ENTITY_PLAYER_BURP, SoundCategory.PLAYERS, 0.5F, worldIn.rand.nextFloat() * 0.1F + 0.9F); if (!worldIn.isRemote && (stack.getItemDamage() < 4 || stack.getItemDamage() == 9)) { - entityLiving.entityDropItem(new ItemStack(GCItems.canister, 1, 0), 0.0F); + ItemHandlerHelper.giveItemToPlayer(player, new ItemStack(GCItems.canister, 1, 0), 0); } stack.shrink(1); return stack;