After downloading the latest update to this mod on 10/16/24, the mod is crashing the game with the following error:
ModError: Runtime error from mod 'mesecons_doors' in callback on_mods_loaded(): ...64\minetest\bin\..\mods\mesecons\mesecons_doors\init.lua:135: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
...64\minetest\bin\..\mods\mesecons\mesecons_doors\init.lua:135: in function <...64\minetest\bin\..\mods\mesecons\mesecons_doors\init.lua:134>
...t 5.4.1 -win64\minetest\bin\..\builtin\game\register.lua:431: in function <...t 5.4.1 -win64\minetest\bin\..\builtin\game\register.lua:417>
Just a simple or {} should fix it. Same should be done right below. Though I do wonder what would cause doors.registered_doors to be nil despite mesecons_doors depending on doors. Maybe there is an API-incompatible mod called doors out there?
See https://forum.minetest.net/viewtopic.php?p=439964#p439964:
The line in question: https://github.com/minetest-mods/mesecons/blob/b46c589a38c98b4fe84716922dbabb21841bca67/mesecons_doors/init.lua#L135
Just a simple
or {}
should fix it. Same should be done right below. Though I do wonder what would causedoors.registered_doors
to benil
despitemesecons_doors
depending ondoors
. Maybe there is an API-incompatible mod calleddoors
out there?