mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 00:07:37 +00:00
Fix chisel being able to be moved when the GUI is open. Closes #128
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user