From bf37b8ee19aa1b3ce50dd67442253c83f40827cc Mon Sep 17 00:00:00 2001 From: Amnet Date: Fri, 14 Feb 2014 02:11:45 +0100 Subject: [PATCH] Fixing issue #190 with duplicating bowls. --- src/main/java/biomesoplenty/common/items/ItemBOPFood.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/biomesoplenty/common/items/ItemBOPFood.java b/src/main/java/biomesoplenty/common/items/ItemBOPFood.java index cba3c39e4..2f27d3dc0 100644 --- a/src/main/java/biomesoplenty/common/items/ItemBOPFood.java +++ b/src/main/java/biomesoplenty/common/items/ItemBOPFood.java @@ -120,12 +120,17 @@ public class ItemBOPFood extends ItemFood if (!player.inventory.addItemStackToInventory(new ItemStack(Items.bowl))) //TODO: player.dropPlayerItem(ItemStack itemStack)? player.dropPlayerItemWithRandomChoice(new ItemStack(Items.bowl, 1, 0), false); + break; + case 5: if (!player.inventory.addItemStackToInventory(new ItemStack(Items.bowl))) player.dropPlayerItemWithRandomChoice(new ItemStack(Items.bowl, 1, 0), false); + break; + case 6: if (!player.inventory.addItemStackToInventory(new ItemStack(Items.bowl))) player.dropPlayerItemWithRandomChoice(new ItemStack(Items.bowl, 1, 0), false); + break; case 10: if (!player.inventory.addItemStackToInventory(new ItemStack(Items.glass_bottle)))