Custom GUI slot fix

This commit is contained in:
luisc committed 2022-01-14 15:06:04 -06:00
1 parent 555ceb741f
commit c28a9156d5
1 file changed
+11 -1
@@ -539,9 +539,19 @@ public class GuiCustom extends GuiScreen implements ICustomScrollListener, IGuiD
if (mouseButton == 0 || mouseButton == 1 || flag) {
int i1 = guiLeft + ((ContainerCustomGui)this.inventorySlots).playerInvX;
int j1 = guiTop + ((ContainerCustomGui)this.inventorySlots).playerInvY;
boolean flag1 = mouseX < i1 || mouseY < j1 || mouseX >= i1 + this.xSize || mouseY >= j1 + this.ySize;
boolean flag1 = true;// mouseX < i1 || mouseY < j1 || mouseX >= i1 + this.xSize || mouseY >= j1 + this.ySize;
int k1 = -1;
for (int i = 0; i < this.inventorySlots.inventorySlots.size(); ++i)
{
Slot invSlot = (Slot)this.inventorySlots.inventorySlots.get(i);
if (invSlot.equals(slot))
{
flag1 = false;
}
}
if (slot != null) {
k1 = slot.slotNumber;
}