Glitchfiend / ToughAsNails

Minecraft mod that adds survival features to increase difficulty and realism, including thirst, body temperature, and more!
https://www.curseforge.com/minecraft/mc-mods/tough-as-nails
Other
277 stars 111 forks source link

getDryTicks() because "cap" is null #808

Closed Xing-C closed 9 months ago

Xing-C commented 9 months ago

What's the issue you encountered?

Create a world, jump into magma, and collapse upon death

How can the issue be reproduced?

Create a world, jump into magma, and collapse upon death

Logs

Mod Version

9.0.0.95

Additional information

No response

Xing-C commented 9 months ago

https://gist.github.com/Xing-C/eaf1ad1e9b1045f5079561c8515d96a4

Adubbz commented 9 months ago

Gonna ping @Favouriteless for this as they added this code

Favouriteless commented 9 months ago

Should be fixed in the PR I just submitted. Unsure how the cap is null at this point, guess the tick event runs before caps are attached or something.