summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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