liplum / MultiCrafterLib

A Mindustry mod library provides a multiple-recipe crafter to produce items, fluids, power or even heat for Json and JavaScript mods.
https://liplum.github.io/MultiCrafterLib/
GNU General Public License v3.0
47 stars 10 forks source link

crashes if block have 0 recipes #6

Closed sheptalo closed 2 years ago

sheptalo commented 2 years ago

I created multi crafter block without recipes and when i tried to check block description game crashes with NullPointer 2022-10-21_18-23-57

ghost commented 2 years ago

yes. you really need to add at least 1 recipe to your multi crafter block (resolvedRecipes can't be null. maybe because the block calls some methods that needs the recipe as the argument(?))