mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed lenses being consumed while in creative
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user