From c1b1f2aa498221db799de678b86aa70f6ee85407 Mon Sep 17 00:00:00 2001
From: PilzAdam <adam-k@outlook.com>
Date: Mon, 17 Dec 2012 20:04:10 +0100
Subject: [PATCH] Add a selection box for stairs that fit the nodebox

---
 mods/stairs/init.lua | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua
index 5f3b6c0f..0e40bf82 100644
--- a/mods/stairs/init.lua
+++ b/mods/stairs/init.lua
@@ -21,6 +21,13 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
 				{-0.5, 0, 0, 0.5, 0.5, 0.5},
 			},
 		},
+		selection_box = {
+			type = "fixed",
+			fixed = {
+				{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
+				{-0.5, 0, 0, 0.5, 0.5, 0.5},
+			},
+		},
 		on_place = function(itemstack, placer, pointed_thing)
 			if pointed_thing.type ~= "node" then
 				return itemstack
@@ -58,6 +65,13 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
 				{-0.5, -0.5, 0, 0.5, 0, 0.5},
 			},
 		},
+		selection_box = {
+			type = "fixed",
+			fixed = {
+				{-0.5, 0, -0.5, 0.5, 0.5, 0.5},
+				{-0.5, -0.5, 0, 0.5, 0, 0.5},
+			},
+		},
 	})
 
 	minetest.register_craft({
-- 
GitLab