mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-19 20:00:00 +00:00
Avoid divide by zero error
This commit is contained in:
1 parent
2c0292c3e7
commit
abd1b38870
2 files changed
+2
-2
No files matched your search
@@ -61,7 +61,7 @@ public class LayoutStyleMinecraft extends LayoutStyle
|
||||
|
||||
//leftSize = ((gui.width - gui.xSize) / 2) - 3;
|
||||
leftSize = ItemPanels.bookmarkPanel.getWidth(gui);
|
||||
numButtons = leftSize / 18;
|
||||
numButtons = Math.max(leftSize / 18, 1);
|
||||
|
||||
delete.state = 0x4;
|
||||
if (NEIController.getDeleteMode())
|
||||
|
||||
Reference in new issue
Block a user