From fd32ee03182817754a6e81e8fefe7e6eebbd38ca Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Nov 2017 03:26:34 +0100 Subject: [PATCH] Fix placing stairs = crash --- mods/ITEMS/mcl_stairs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_stairs/api.lua b/mods/ITEMS/mcl_stairs/api.lua index 82c2d7c395..bd6d4962e7 100644 --- a/mods/ITEMS/mcl_stairs/api.lua +++ b/mods/ITEMS/mcl_stairs/api.lua @@ -60,7 +60,7 @@ local function place_stair(itemstack, placer, pointed_thing) param2 = minetest.dir_to_facedir(vector.subtract(p1, placer_pos)) end - local fpos = get_pos(placer, pointed_thing) + local fpos = get_fpos(placer, pointed_thing) if p0.y - 1 == p1.y or (fpos > 0 and fpos < 0.5) or (fpos < -0.5 and fpos > -0.999999999) then