summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-14 16:27:59 -0500
committercheapie <no-email-for-you@example.com>2024-09-14 16:27:59 -0500
commitfa911813dbca08c78327ca5403331f4cd6c89d99 (patch)
treefce2f8800e091d091514d24016d69d1107234b14
parent8af241857746c227bd7194bd5b42cea6a6d3d983 (diff)
downloadprefab_redo-fa911813dbca08c78327ca5403331f4cd6c89d99.tar
prefab_redo-fa911813dbca08c78327ca5403331f4cd6c89d99.tar.gz
prefab_redo-fa911813dbca08c78327ca5403331f4cd6c89d99.tar.bz2
prefab_redo-fa911813dbca08c78327ca5403331f4cd6c89d99.tar.xz
prefab_redo-fa911813dbca08c78327ca5403331f4cd6c89d99.zip
Add luacheck configuration and some minor cleanupsHEADmaster
-rw-r--r--.luacheckrc7
-rw-r--r--init.lua12
2 files changed, 12 insertions, 7 deletions
diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 0000000..0aec898
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,7 @@
+max_line_length = 160
+
+read_globals = {
+ "minetest",
+ "default",
+ "doors",
+}
diff --git a/init.lua b/init.lua
index 7b28b84..b35bcd6 100644
--- a/init.lua
+++ b/init.lua
@@ -60,7 +60,6 @@ minetest.register_node("prefab_redo:concrete_wall", {
end
end,
on_destruct = function(pos)
- local node = minetest.get_node(pos)
local pos_above = {x = pos.x,y = pos.y + 1,z = pos.z}
local node_above = minetest.get_node(pos_above)
if node_above.name == "prefab_redo:concrete_wall_upper" then
@@ -88,7 +87,6 @@ minetest.register_node("prefab_redo:concrete_wall_upper", {
},
connects_to = {"prefab_redo:concrete_wall","prefab_redo:concrete_wall_upper"},
on_destruct = function(pos)
- local node = minetest.get_node(pos)
local pos_above = {x = pos.x,y = pos.y + 1,z = pos.z}
local node_above = minetest.get_node(pos_above)
if node_above.name == "prefab_redo:concrete_wall_upper" then
@@ -161,9 +159,9 @@ minetest.register_node("prefab_redo:concrete_catwalk",{
node_box = {
type = "fixed",
fixed = {
- {-0.5,-0.5,-0.5,0.5,-0.375,0.5},
- {-0.5,-0.5,-0.0625,-0.4375,0.5,0.0625},
- {0.4433,-0.5,-0.0625,0.5,0.5,0.0625},
+ {-0.5,-0.5,-0.5,0.5,-0.375,0.5},
+ {-0.5,-0.5,-0.0625,-0.4375,0.5,0.0625},
+ {0.4433,-0.5,-0.0625,0.5,0.5,0.0625},
{0.4433,0.4485,-0.5,0.5,0.5,0.5},
{-0.5,0.4485,-0.5,-0.4375,0.5,0.5},
},
@@ -180,8 +178,8 @@ minetest.register_node("prefab_redo:concrete_bench", {
node_box = {
type = "fixed",
fixed = {
- {-0.125,-0.5,-0.125,0.125,0.0625,0.125},
- {-0.5,0.0625,-0.3125,0.5,0.1875,0.3125},
+ {-0.125,-0.5,-0.125,0.125,0.0625,0.125},
+ {-0.5,0.0625,-0.3125,0.5,0.1875,0.3125},
},
},
groups = {cracky = 2},