Add luacheck configuration and fix deprecated digilines API usage

This commit is contained in:
cheapie 2024-09-14 15:05:40 -05:00
parent 8472cc3178
commit 32ce8664dd
2 changed files with 9 additions and 1 deletions

8
.luacheckrc Normal file

@ -0,0 +1,8 @@
max_line_length = 160
read_globals = {
"minetest",
"vector",
"digilines",
"screwdriver",
}

@ -136,7 +136,7 @@ minetest.register_node("digiscreen:digiscreen",{
end,
digiline = {
wire = {
rules = digiline.rules.default,
rules = digilines.rules.default,
},
effector = {
action = function(pos,_,channel,msg)