From 32ce8664dd020748825ecaad01abe0d23c60028d Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Sep 2024 15:05:40 -0500 Subject: Add luacheck configuration and fix deprecated digilines API usage --- .luacheckrc | 8 ++++++++ init.lua | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..257113e --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,8 @@ +max_line_length = 160 + +read_globals = { + "minetest", + "vector", + "digilines", + "screwdriver", +} diff --git a/init.lua b/init.lua index 45f8663..cd22d40 100644 --- a/init.lua +++ b/init.lua @@ -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) -- cgit v1.2.3