Division by Zero Exception when using Gas-Burning Generator
Aeysol opened this issue ยท 5 comments
Hey there,
when putting a gas tank into a gas-burning generator or connecting a pressurized tube to it and opening the gui afterwards the client crashes with an DivByZero-Exception.
The error is located at Mekanism / src / main / java / mekanism / client / gui / GuiGasGauge.java
at line 36.
return infoHandler.getTank().getGas() != null ? infoHandler.getTank().getStored()*(height-2) / infoHandler.getTank().getMaxGas() : 0;
... / infoHandler.getTank().getMaxGas()
is returning 0 hence the exception.
Minecraft 1.7.10 Server on Forge 1.7.10-10.13.0.1207 using Mekanism 1.7.10-7.1.1.98.
Regards.
I too can replicate this bug in Mekanism 7.1.1.104. Using Forge 1.7.10-10.13.1.1217
When I connect a gas burning generator to an electrolytic separator the system both work in one setup and replicates this errors in another setup. Its very odd.
I fixed the bug that was corrupting them, but already-corrupted ones will need to be ditched and remade, sorry about that.
So how do I fix it? Respawn the parts? Or do I need to download a new jar / class file?
A spawned-in generator from NEI should be fine, as should any freshly crafted ones. Specifically, only ones that were placed, then broken with no fuel in them, on the range of builds that had the bug, will be corrupted.