From aacb377f8c3549958cc5cb0133e258b8cba3916a Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 17 Feb 2017 23:13:22 -0500 Subject: [PATCH] "widen" the range for floor/ceiling placement checking in fix_rotation function --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index a45f2bf..bc8234f 100644 --- a/init.lua +++ b/init.lua @@ -103,9 +103,9 @@ function unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing) local fdir = minetest.dir_to_wallmounted(dir) - if pitch < -(math.pi/4) then + if pitch < -(math.pi/8) then fdir = 0 - elseif pitch > math.pi/4 then + elseif pitch > math.pi/8 then fdir = 1 end minetest.swap_node(pos, { name = node.name, param2 = fdir })