1
0
Fork 0

Remove old workaround in mcl_stairs

This commit is contained in:
Wuzzy 2019-04-01 15:16:33 +02:00
parent 2203d0df53
commit 219ec1ddcb
1 changed files with 2 additions and 13 deletions

View File

@ -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
return finepos.y % 1
end
local function place_slab_normal(itemstack, placer, pointed_thing)