mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-10-25 20:22:26 +00:00
Fixed click guard (#31)
This commit is contained in:
1 parent
969b95fa4e
commit
74bac7de31
1 file changed
+11
@@ -499,6 +499,17 @@ public class GuiPlayerExpanded extends GuiContainer implements INEIGuiHandler {
|
||||
}
|
||||
|
||||
private boolean isClickInUI(int mouseX, int mouseY) {
|
||||
ContainerPlayerExpanded expandedInventory = (ContainerPlayerExpanded) this.inventorySlots;
|
||||
for (int slotIndex = 0; slotIndex < expandedInventory.getBaubleSlotCount(); slotIndex++) {
|
||||
SlotBauble baubleSlot = expandedInventory.getBaubleSlot(slotIndex);
|
||||
if (baubleSlot == null || baubleSlot.yDisplayPosition == -2000) {
|
||||
continue;
|
||||
}
|
||||
if (this.func_146978_c(baubleSlot.xDisplayPosition, baubleSlot.yDisplayPosition, 16, 16, mouseX, mouseY)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
int columns = getColumns();
|
||||
int uiYStart = this.guiTop + 4;
|
||||
int uiYEnd = uiYStart + 158;
|
||||
|
||||
Reference in new issue
Block a user