minetest-mods / technic

Technic mod for Minetest
Other
145 stars 154 forks source link

chainsaw triggers a on_mods_loaded() error #620

Closed RonnyBarthmann closed 1 year ago

RonnyBarthmann commented 1 year ago

i had to disable the chainsaw lua by commenting it out.

I always got the following error:

2023-08-03 00:59:54: ERROR[Main]: ModError: Runtime error from mod 'technic' in callback on_mods_loaded(): invalid key to 'next' 2023-08-03 00:59:54: ERROR[Main]: stack traceback: 2023-08-03 00:59:54: ERROR[Main]: [C]: ? 2023-08-03 00:59:54: ERROR[Main]: [C]: in function '(for generator)' 2023-08-03 00:59:54: ERROR[Main]: ...reative/worldmods/technic/technic/tools/chainsaw.lua:80: in function '?' 2023-08-03 00:59:54: ERROR[Main]: .../ubuntu/minetest570/bin/../builtin/game/register.lua:446: in function <.../ubuntu/minetest570/bin/../builtin/game/register.lua:432>

The problem only started appearing recently, after the server restarted once

what could solve the problem?

SmallJoker commented 1 year ago

I see. There might be iterator issues when the table is modified while iterating. Fixed as of 0921c32.

MidnightPhantom commented 1 year ago

Hey, SmallJoker I've also got an issue with the chainsaw, I've opened an issue so please could you check it.

https://github.com/minetest-mods/technic/issues/619 Here is the link