Fixed lenses being consumed while in creative

This commit is contained in:
Yopu committed 2015-06-08 21:47:01 -04:00
1 parent bbf6d7e455
commit 3f630b6122
1 file changed
+3 -1
@@ -151,7 +151,9 @@ public class BlockSpreader extends BlockModContainer implements IWandable, IWand
return false;
if(lens == null && isHeldItemLens) {
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, null);
if (!par5EntityPlayer.capabilities.isCreativeMode)
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, null);
spreader.setInventorySlotContents(0, heldItem.copy());
spreader.markDirty();
} else if(lens != null && !wool) {