This commit is contained in:
lordIcocain committed 2025-04-20 21:12:47 +03:00
1 parent a7f00c1830
commit b02b659d68
1 file changed
+2 -2
@@ -1381,11 +1381,11 @@ public class GuiInterfaceWireless extends FCBaseMEGui implements IDropToFillText
return true;
}
int offsetY = mouseY - dispY;
int offsetY = mouseY - dispY - 1;
int offsetX = mouseX - (VIEW_WIDTH - rowSize * 18) - 1;
if (offsetX >= 0 && offsetX < (rowSize * 18)
&& mouseY > Math.max(dispY, InterfaceWirelessSection.TITLE_HEIGHT)
&& offsetY < Math.min(viewHeight - dispY, guiHeight)) {
&& offsetY < Math.min(viewHeight - dispY, guiHeight - 1)) {
final int col = offsetX / 18;
final int row = offsetY / 18;
final int slotIdx = row * rowSize + col;