From 0934518fef87fa951f6ac760d215ed6b4a6d916a Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Wed, 25 Jun 2014 23:41:34 +0100 Subject: [PATCH] Fixed major Bauble dupe. --- .../botania/common/item/equipment/bauble/ItemBauble.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemBauble.java b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemBauble.java index 18588d368..4b6090bdd 100644 --- a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemBauble.java +++ b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemBauble.java @@ -43,9 +43,11 @@ public abstract class ItemBauble extends ItemMod implements IBauble { InventoryBaubles baubles = PlayerHandler.getPlayerBaubles(par3EntityPlayer); for(int i = 0; i < baubles.getSizeInventory(); i++) if(baubles.getStackInSlot(i) == null && baubles.isItemValidForSlot(i, par1ItemStack)) { - baubles.setInventorySlotContents(i, par1ItemStack.copy()); - if(!par3EntityPlayer.capabilities.isCreativeMode) - par3EntityPlayer.inventory.setInventorySlotContents(par3EntityPlayer.inventory.currentItem, null); + if(!par2World.isRemote) { + baubles.setInventorySlotContents(i, par1ItemStack.copy()); + if(!par3EntityPlayer.capabilities.isCreativeMode) + par3EntityPlayer.inventory.setInventorySlotContents(par3EntityPlayer.inventory.currentItem, null); + } onEquipped(par1ItemStack, par3EntityPlayer); break;