Closed superfloh247 closed 3 years ago
This looks like an operator precedence error. At line 670 in api.lua, there are missing parentheses around the conditional expression, which should be:
"label[4,4.7;", "Owner:" .. (self.owner or ""), "]",
Fixed as of latest commit.
right click with wielded sword to fight dragon
2021-04-22 19:36:12: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '??' in callback luaentity_run_simple_callback(): /opt/minetest/bin/../mods/draconis/api/api.lua:670: attempt to concatenate field 'owner' (a nil value) 2021-04-22 19:36:12: ERROR[Main]: stack traceback: 2021-04-22 19:36:12: ERROR[Main]: /opt/minetest/bin/../mods/draconis/api/api.lua:670: in function 'form' 2021-04-22 19:36:12: ERROR[Main]: /opt/minetest/bin/../mods/draconis/api/api.lua:679: in function 'formspec' 2021-04-22 19:36:12: ERROR[Main]: /opt/minetest/bin/../mods/draconis/mobs/ice_dragon.lua:401: in function 'func' 2021-04-22 19:36:12: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:106: in function 'func' 2021-04-22 19:36:12: ERROR[Main]: /opt/minetest/bin/../builtin/profiler/instrumentation.lua:106: in function </opt/minetest/bin/../builtin/profiler/instrumentation.lua:100>