digtron
digtron copied to clipboard
Digtron Control Module creates a crash
I got this error:
2020-11-05 23:38:54: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'digtron' in callback node_on_receive_fields(): ...minetest5/bin/../mods/digtron/nodes/node_controllers.lua:275: attempt to perform arithmetic on local 'offset' (a nil value)
2020-11-05 23:38:54: ERROR[Main]: stack traceback:
2020-11-05 23:38:54: ERROR[Main]: ...minetest5/bin/../mods/digtron/nodes/node_controllers.lua:275: in function <...minetest5/bin/../mods/digtron/nodes/node_controllers.lua:238>
There is a check missing in line: https://github.com/minetest-mods/digtron/blob/master/nodes/node_controllers.lua#L269 It should look like:
if fields.set and offset and slope and slope > 0 then
it's been 3 years now, is this still an issue?