Merge pull request #8 from CJCutrone/patch-1

Not consume Item while in Creative
This commit is contained in:
Azanor committed 2014-04-10 08:26:04 +02:00
commit e9e634e1c1
1 file changed
+3 -1
@@ -62,7 +62,9 @@ public class ItemRing extends Item implements IBauble
for(int i = 0; i < baubles.getSizeInventory(); i++)
if(baubles.getStackInSlot(i) == null && baubles.isItemValidForSlot(i, par1ItemStack)) {
baubles.setInventorySlotContents(i, par1ItemStack.copy());
par3EntityPlayer.inventory.setInventorySlotContents(par3EntityPlayer.inventory.currentItem, null);
if(!par3EntityPlayer.capabilities.isCreativeMode){
par3EntityPlayer.inventory.setInventorySlotContents(par3EntityPlayer.inventory.currentItem, null);
}
onEquipped(par1ItemStack, par3EntityPlayer);
break;
}