Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digtron Control Module creates a crash #72

Open
joe7575 opened this issue Nov 6, 2020 · 1 comment
Open

Digtron Control Module creates a crash #72

joe7575 opened this issue Nov 6, 2020 · 1 comment

Comments

@joe7575
Copy link

joe7575 commented Nov 6, 2020

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
@BuckarooBanzay
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants