mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-04 16:53:46 +01:00
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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user