Ellpeck / NaturesAura

A Minecraft mod about using Aura for unique mechanics
https://modrinth.com/mod/natures-aura
MIT License
47 stars 35 forks source link

NPE on ClientEvents#onOverlayRender #347

Open DiegoRutolo opened 5 months ago

DiegoRutolo commented 5 months ago

https://github.com/Ellpeck/NaturesAura/blob/94a21a6c2c0cd73f581369f72d7190edb960c5ef/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java#L264

Sometimes, container can be null, crashing the client. I wasn't able to reproduce it at will, but a simple null check should do the trick.

Ellpeck commented 5 months ago

Hmm, yea that should probably have the null check just to be sure, but also: the aura cache shouldn't be able to be without that capability, so something else must be going wrong as well there. If you manage to reproduce this issue, please let me know!