summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-14 20:36:00 -0500
committercheapie <no-email-for-you@example.com>2024-09-14 20:36:00 -0500
commit8409dd0d09ebd91e2fa5f23e67703b23b1f72a7b (patch)
tree9c478beaafe38a09479f5e2f79d3e06c968ccafe
parent1b39951a48a5cf65250ec0db8580ad99de84db71 (diff)
downloadunifiedmesecons-8409dd0d09ebd91e2fa5f23e67703b23b1f72a7b.tar
unifiedmesecons-8409dd0d09ebd91e2fa5f23e67703b23b1f72a7b.tar.gz
unifiedmesecons-8409dd0d09ebd91e2fa5f23e67703b23b1f72a7b.tar.bz2
unifiedmesecons-8409dd0d09ebd91e2fa5f23e67703b23b1f72a7b.tar.xz
unifiedmesecons-8409dd0d09ebd91e2fa5f23e67703b23b1f72a7b.zip
Add luacheck configuration, some minor cleanup, and migrate depends.txt to mod.confHEADmaster
-rw-r--r--.luacheckrc8
-rw-r--r--init.lua4
-rw-r--r--mod.conf3
3 files changed, 13 insertions, 2 deletions
diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 0000000..a2da26e
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,8 @@
+max_line_length = 160
+
+read_globals = {
+ "minetest",
+ "mesecon",
+ "unifieddyes",
+ "table.copy",
+}
diff --git a/init.lua b/init.lua
index 39ec8c0..1a2d23b 100644
--- a/init.lua
+++ b/init.lua
@@ -23,7 +23,7 @@ local tjunction_get_rules = function (node)
{x = 1, y = 0, z = 0},
{x = 0, y = 0, z = -1}}
- for i = 0, node.param2%32 do
+ for _=0,node.param2%32 do
rules = mesecon.rotate_rules_left(rules)
end
@@ -35,7 +35,7 @@ local corner_get_rules = function (node)
{{x = 1, y = 0, z = 0},
{x = 0, y = 0, z = -1}}
- for i = 0, node.param2%32 do
+ for _=0,node.param2%32 do
rules = mesecon.rotate_rules_left(rules)
end
diff --git a/mod.conf b/mod.conf
new file mode 100644
index 0000000..c3a49c9
--- /dev/null
+++ b/mod.conf
@@ -0,0 +1,3 @@
+name = unifiedmesecons
+description = Unified Mesecons (Deprecated)
+depends = mesecons,mesecons_insulated,mesecons_extrawires,unifieddyes