summaryrefslogtreecommitdiff
path: root/init.lua
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 /init.lua
parent8af241857746c227bd7194bd5b42cea6a6d3d983 (diff)
downloadprefab_redo-master.tar
prefab_redo-master.tar.gz
prefab_redo-master.tar.bz2
prefab_redo-master.tar.xz
prefab_redo-master.zip
Add luacheck configuration and some minor cleanupsHEADmaster
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua12
1 files changed, 5 insertions, 7 deletions
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},