From da44995528df927ec2a1e99d8082f502a40d349f Mon Sep 17 00:00:00 2001 From: THE-NERD2 Date: Sun, 1 Dec 2024 15:27:30 +0100 Subject: [PATCH] Fix upside-down corner stair placement (#4709) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4709 Reviewed-by: Mikita Wiśniewski Co-authored-by: THE-NERD2 Co-committed-by: THE-NERD2 --- mods/ITEMS/mcl_stairs/cornerstair.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_stairs/cornerstair.lua b/mods/ITEMS/mcl_stairs/cornerstair.lua index 03f8aacca..803c74bc7 100644 --- a/mods/ITEMS/mcl_stairs/cornerstair.lua +++ b/mods/ITEMS/mcl_stairs/cornerstair.lua @@ -377,7 +377,7 @@ function mcl_stairs.cornerstair.add(name, stairtiles) after_place_node = function(pos, placer, itemstack, pointed_thing) local node = minetest.get_node(pos) local ceiling = false - if pointed_thing.under.y > pointed_thing.above.y then + if placer:get_look_vertical() < 0 then ceiling = true if node.param2 == 0 then node.param2 = 20 elseif node.param2 == 1 then node.param2 = 23