mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Fix lens being consume in creative when attached to a prism
Closes #1164
This commit is contained in:
1 parent
32f762c01b
commit
5b37b6b246
1 file changed
+3
-1
@@ -97,7 +97,9 @@ public class BlockPrism extends BlockModContainer implements IManaTrigger, ILexi
|
||||
int meta = par1World.getBlockMetadata(par2, par3, par4);
|
||||
|
||||
if(lens == null && isHeldItemLens) {
|
||||
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, null);
|
||||
if(!par5EntityPlayer.capabilities.isCreativeMode)
|
||||
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, null);
|
||||
|
||||
prism.setInventorySlotContents(0, heldItem.copy());
|
||||
prism.markDirty();
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, meta | 1, 1 | 2);
|
||||
|
||||
Reference in new issue
Block a user