From cf2d9077cce878360c82270825c22994ca84d64e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 17 Mar 2022 04:46:42 +0100 Subject: [PATCH] Also change inner/outer stairs and slab nodeboxes --- mods/stairs/init.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index a74bed4..4ec33a7 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -85,7 +85,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description, sounds = sounds, node_box = { -- This stairs nodebox is a bit unusual. - -- This is done in a way that it completely blocks off the laser + -- This is done in a way that it completely blocks off the laser. type = "fixed", fixed = { {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5}, @@ -142,7 +142,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description, sounds = sounds, node_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + fixed = {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5}, }, on_place = function(itemstack, placer, pointed_thing) local under = minetest.get_node(pointed_thing.under) @@ -225,11 +225,12 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, groups = new_groups, sounds = sounds, node_box = { + -- Unusual stairs nodebox (see stairs comment) type = "fixed", fixed = { - {-0.5, -0.5, -0.5, 0.5, 0.0, 0.5}, - {-0.5, 0.0, 0.0, 0.5, 0.5, 0.5}, - {-0.5, 0.0, -0.5, 0.0, 0.5, 0.0}, + {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5}, + {-0.5, 1/16, -1/16, 0.5, 0.5, 0.5}, + {-0.5, 1/16, -0.5, 1/16, 0.5, -1/16}, }, }, on_place = function(itemstack, placer, pointed_thing) @@ -290,10 +291,11 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, groups = new_groups, sounds = sounds, node_box = { + -- Unusual stairs nodebox (see stairs comment) type = "fixed", fixed = { - {-0.5, -0.5, -0.5, 0.5, 0.0, 0.5}, - {-0.5, 0.0, 0.0, 0.0, 0.5, 0.5}, + {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5}, + {-0.5, 1/16, -1/16, 1/16, 0.5, 0.5}, }, }, on_place = function(itemstack, placer, pointed_thing)