minetest-mods / craftguide

:book: The most comprehensive Crafting Guide on Minetest
Other
43 stars 20 forks source link

Deal with items that have no recipe #118

Closed mk-pmb closed 3 years ago

mk-pmb commented 3 years ago

Using MT 5.3.0 and mod mtg_plus:

ERROR[Main]: ModError: Failed to load and run script from …/.minetest/mods/mtg_plus/init.lua:
ERROR[Main]: ...inetest/games/minetest_extended/mods/craftguide/init.lua:1326: attempt to index field 'recipe' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]:    ...inetest/games/minetest_extended/mods/craftguide/init.lua:1326: in function 'register_craft'
ERROR[Main]:    …/.minetest/games/minetest_extended/mods/xpanes/init.lua:165: in function 'register_pane'
ERROR[Main]:    …/.minetest/mods/mtg_plus/xpanes.lua:34: in main chunk
ERROR[Main]:    [C]: in function 'dofile'
ERROR[Main]:    …/.minetest/mods/mtg_plus/init.lua:14: in main chunk

I think there should be some better solution to deal with it, than to crash.

kilbith commented 3 years ago

I'm not getting any crash with the latest commit. Bug report should be submitted only if you're on the latest commit.