KingContaria / seedqueue

Minecraft mod that generates multiple worlds concurrently and lets players reset them on an ingame wall screen.
MIT License
32 stars 18 forks source link

Fix: Round when doing layout mul to prevent double precision errors. #76

Closed DesktopFolder closed 1 month ago

DesktopFolder commented 1 month ago

BigDecimal may be a better solution here (or perhaps another solution not yet thought of?)

Anyways, this should fix all cases of off-by-one regardless, it's just possible there are other issues this could introduce that I'm not thinking of right now.

DesktopFolder commented 1 month ago

Updated with commit to use BigDecimal instead. Assuming I didn't typo anything, this should be a 100% safe change 🤞 unlike round which could have complications.