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

unsure if serious or not, getting a number of repeated naturesaura recipe(?) big error traces in log #344

Open hiimrickross opened 7 months ago

hiimrickross commented 7 months ago

hi, while looking thru logs / hunting crashes for other things, i noticed there is big sections of recipe failures for naturesaura in there. sophisticatednaturesalexcaves.txt

is this inconsequential, or might cause problems?

Ellpeck commented 6 months ago

Hi! Does this also happen with just Nature's Aura and Patchouli installed?

AndreAugustoDev commented 6 months ago

This issue might be caused by these functions above The JEINaturesAuraPlugin.registerItemSubtypes#registration.registerSubtypeInterpreter definition doesn't check if the return value of getEffect can be null. The return value of ItemEffectPowder.getEffect can indeed be null. JEINaturesAuraPlugin.registerItemSubtypes#registration.registerSubtypeInterpreter doesn't know how to correct handle a null return value. It seems that the return value of ItemEffectPowder.getEffect is null, and JEINaturesAuraPlugin.registerItemSubtypes#registration.registerSubtypeInterpreter is unable to process this.

https://github.com/Ellpeck/NaturesAura/blob/f2547e6555f40ae8a5d2ad5f1bc9c379dc5e50ff/src/main/java/de/ellpeck/naturesaura/items/ItemEffectPowder.java#L24-L31

https://github.com/Ellpeck/NaturesAura/blob/f2547e6555f40ae8a5d2ad5f1bc9c379dc5e50ff/src/main/java/de/ellpeck/naturesaura/compat/jei/JEINaturesAuraPlugin.java#L48-L60