Fix chisel being able to be moved when the GUI is open. Closes #128

This commit is contained in:
tterrag1098 committed 2015-01-13 05:59:51 -05:00
1 parent 6ea5b7c453
commit ccee6533f4
1 file changed
+2 -1
@@ -62,7 +62,8 @@ public class ContainerChisel extends Container {
@Override
public ItemStack slotClick(int par1, int par2, int par3, EntityPlayer par4EntityPlayer) {
if (par3 == 2 && par2 == currentIndex)
// we need to subtract away all the other slots
if (par1 - inventory.getSizeInventory() - 27 == currentIndex)
return null;
return super.slotClick(par1, par2, par3, par4EntityPlayer);