mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-24 22:04:40 +00:00
Merge pull request #8 from CJCutrone/patch-1
Not consume Item while in Creative
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user