ElCeejo / draconis

Adds Dragons and related resources and equipment to Minetest Game
MIT License
18 stars 23 forks source link

[crash] server crashes when trying to use old bestiary #18

Closed ronoaldo closed 2 years ago

ronoaldo commented 2 years ago

How to reproduce:

For the update, perhaps consider replacing the old bestiary item with the new one? Not sure if this is possible actually.

ronoaldo commented 2 years ago

Logs (may be out of order 😬)

2022-02-19 19:12:27: ERROR[Main]: stack traceback:
2022-02-19 19:12:27: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'draconis' in callback item_OnPlace(): /usr/share/minetest/mods/draconis/items.lua:1215: attempt to index local 'pages' (a nil value)
2022-02-19 19:12:27: ERROR[Main]: /usr/share/minetest/mods/draconis/items.lua:1250: in function </usr/share/minetest/mods/draconis/items.lua:1240>
2022-02-19 19:12:27: ERROR[Main]: /usr/share/minetest/mods/draconis/items.lua:1215: in function 'libri_formspec'
ElCeejo commented 2 years ago

The old bestiary item is replaced via aliasing, but it seems like aliased items don't clear metadata for some reason.

ElCeejo commented 2 years ago

Fixed as of latest commit.