Divide-by-zero error on Atomic Disassembler
steven11sjf opened this issue ยท 1 comments
Issue description
I was mining some sand with my disassembler set to fast
mode, and the game crashed with a DivideByZero error.
I did some poking around in the repo and it looks like it may apply to current build. This seems to be the location of the crash in current builds:
Mekanism/src/main/java/mekanism/common/item/gear/ItemAtomicDisassembler.java
Lines 118 to 121 in 23f194e
It used the FloatingLong
class that seems to have been removed since, but that call was replaced with a regular division. This would imply that getMode(itemStack).getEfficiency()
returned 0 at L187. Beyond that I'm not familiar enough with the codebase to find why.
Steps to reproduce
Unable to reproduce
Minecraft version
1.20.x or earlier (No longer being developed)
NeoForge version
forge 47.3.0
Mekanism version
Older
Other relevant versions
Mekanism version 10.4.8
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
https://gist.github.com/steven11sjf/bab23a5965fd57436cd0ccfcc3902ffe