digtron icon indicating copy to clipboard operation
digtron copied to clipboard

Digtron Control Module creates a crash

Open joe7575 opened this issue 4 years ago • 1 comments

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

joe7575 avatar Nov 06 '20 11:11 joe7575

it's been 3 years now, is this still an issue?

BuckarooBanzay avatar Sep 08 '23 18:09 BuckarooBanzay