mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 07:47:55 +00:00
copy of fix interface terminal crash (#285)
Co-authored-by: Maya <10861407+serenibyss@users.noreply.github.com>
This commit is contained in:
1 parent
56703bf498
commit
a03db709ba
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;
|
||||
|
||||
Reference in new issue
Block a user