Merge pull request #1071 from Yopu/lens-fix

Fixed lenses being consumed while in creative
This commit is contained in:
TheWhiteWolves committed 2015-06-09 12:18:29 +01:00
commit e9b5336a3d
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) {