Primitive Mobs

Primitive Mobs

10M Downloads

Divide-by-zero crash if tameable Treasure Slime chance percentage is set to 0

nihiltres opened this issue ยท 2 comments

commented

Title says it all; the crash log is very clear, and the problem goes away immediately if I set the tameable treasure slime chance percentage to 1 as a compromise.

There's a decent chance the same crash might apply to other numeric inputs.

SANITIZE YOUR INPUTS!

:)

commented

Looks like you need to change the order of the conditions on line 113 of EntityTreasureSlime.java.

commented

Thanks for reporting! Stupid oversight, once more :P Will fix. You can set it to negative for now to get the same effect I suppose.