Clicking on slider with 0 enchantments causes a / by 0
Darkhax opened this issue ยท 0 comments
Clicking the enchantment slider when there are 0 enchantments will cause a divide by 0 crash.
Caused by: java.lang.ArithmeticException: / by zero
at net.darkhax.eplus.client.gui.n.GuiButtonScroller.mouseDragged(GuiButtonScroller.java:47) ~[GuiButtonScroller.class:?]
at net.darkhax.eplus.client.gui.n.GuiButtonScroller.drawButton(GuiButtonScroller.java:35) ~[GuiButtonScroller.class:?]
at net.minecraft.client.gui.GuiScreen.drawScreen(GuiScreen.java:82) ~[GuiScreen.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:98) ~[GuiContainer.class:?]
at net.darkhax.eplus.client.gui.n.GuiAdvancedTable.drawScreen(GuiAdvancedTable.java:83) ~[GuiAdvancedTable.class:?]
at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:353) ~[ForgeHooksClient.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1177) ~[EntityRenderer.class:?]
... 15 more