Project Zomboid

Project Zomboid

What can I craft Addon
H A L #9000 31 Dec, 2024 @ 1:34pm
NullPointerException in Food.isNormalAndFullFood() Related to Crafting
Game Version: 42.0.2

Description:

I am experiencing consistent exception errors in Project Zomboid related to crafting. The game throws a `NullPointerException` when attempting to access the `PoisonDetectionLevel` of an item during recipe processing. The stack traces strongly indicate that the "What can I craft?? (Output Item)" mod is triggering this issue.

The error occurs specifically in the `Food.isNormalAndFullFood()` method, which is called during the handling of crafting recipes. It seems that the mod is somehow causing an item involved in a recipe to have a `null` value for its `PoisonDetectionLevel` property, leading to the exception when the game tries to convert it to an integer.
< >
Showing 1-1 of 1 comments
Hx  [developer] 31 Dec, 2024 @ 6:29pm 
I'm currently using the code from the What Can I Craft mod, and I've encountered this issue. I would greatly appreciate it if you could forward this request to the original mod creator for a fix.
< >
Showing 1-1 of 1 comments
Per page: 1530 50