Skip to content

Commit

Permalink
Avoid divide by zero error
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchej123 committed Jan 22, 2020
1 parent 2c0292c commit abd1b38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ mc_version=1.7.10
forge_version=10.13.4.1614-1.7.10
ccl_version=1.1.3.138
ccc_version=1.0.7.+
mod_version=2.0.0-beta-2-GTNH
mod_version=2.0.0-beta-3-GTNH
2 changes: 1 addition & 1 deletion src/codechicken/nei/LayoutStyleMinecraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void layout(GuiContainer gui, VisiblityData visiblity) {

//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())
Expand Down

0 comments on commit abd1b38

Please sign in to comment.