summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-14 15:05:40 -0500
committercheapie <no-email-for-you@example.com>2024-09-14 15:05:40 -0500
commit32ce8664dd020748825ecaad01abe0d23c60028d (patch)
tree7bb375972aa5a195c5908ddf015ed89f719a8c86
parent8472cc3178b600e7ed7b9f51e449e6d5f3d743e7 (diff)
downloaddigiscreen-32ce8664dd020748825ecaad01abe0d23c60028d.tar
digiscreen-32ce8664dd020748825ecaad01abe0d23c60028d.tar.gz
digiscreen-32ce8664dd020748825ecaad01abe0d23c60028d.tar.bz2
digiscreen-32ce8664dd020748825ecaad01abe0d23c60028d.tar.xz
digiscreen-32ce8664dd020748825ecaad01abe0d23c60028d.zip
Add luacheck configuration and fix deprecated digilines API usageHEADmaster
-rw-r--r--.luacheckrc8
-rw-r--r--init.lua2
2 files changed, 9 insertions, 1 deletions
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)