From 219ec1ddcbc9ac88c83f4d2ba59dc5037a61ab2c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Apr 2019 15:16:33 +0200 Subject: [PATCH] Remove old workaround in mcl_stairs --- mods/ITEMS/mcl_stairs/api.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/mods/ITEMS/mcl_stairs/api.lua b/mods/ITEMS/mcl_stairs/api.lua index 5c892f61be..a6e6c65945 100644 --- a/mods/ITEMS/mcl_stairs/api.lua +++ b/mods/ITEMS/mcl_stairs/api.lua @@ -4,19 +4,8 @@ local S = minetest.get_translator("mcl_stairs") -- Wrapper around mintest.pointed_thing_to_face_pos. local function get_fpos(placer, pointed_thing) - local fpos - -- Workaround: minetest.pointed_thing_to_face_pos crashes in MT 0.4.16 if - -- pointed_thing.under and pointed_thing.above are equal - -- FIXME: Remove this when MT got fixed. - if not vector.equals(pointed_thing.under, pointed_thing.above) then - -- The happy case: Everything is normal - local finepos = minetest.pointed_thing_to_face_pos(placer, pointed_thing) - fpos = finepos.y % 1 - else - -- Fallback if both above and under are equal - fpos = 0 - end - return fpos + local finepos = minetest.pointed_thing_to_face_pos(placer, pointed_thing) + return finepos.y % 1 end local function place_slab_normal(itemstack, placer, pointed_thing)