From 8409dd0d09ebd91e2fa5f23e67703b23b1f72a7b Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Sep 2024 20:36:00 -0500 Subject: Add luacheck configuration, some minor cleanup, and migrate depends.txt to mod.conf --- .luacheckrc | 8 ++++++++ init.lua | 4 ++-- mod.conf | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .luacheckrc create mode 100644 mod.conf 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 -- cgit v1.2.3