Fix upside-down corner stair placement (#4709)

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4709
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: THE-NERD2 <pdp9729@gmail.com>
Co-committed-by: THE-NERD2 <pdp9729@gmail.com>
This commit is contained in:
THE-NERD2 2024-12-01 15:27:30 +01:00 committed by the-real-herowl
parent 8c73164d92
commit da44995528

@ -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