From 52b180824227c7be9d80714cd46d0ddc01f48795 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 26 Jul 2017 05:02:29 +0200 Subject: [PATCH] Fix sign text direction on wall signs --- mods/ITEMS/mcl_signs/init.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mods/ITEMS/mcl_signs/init.lua b/mods/ITEMS/mcl_signs/init.lua index 970a5a216b..a013aeae57 100644 --- a/mods/ITEMS/mcl_signs/init.lua +++ b/mods/ITEMS/mcl_signs/init.lua @@ -260,9 +260,7 @@ minetest.register_node("mcl_signs:wall_sign", { end end - local dir = {x = under.x - above.x, - y = under.y - above.y, - z = under.z - above.z} + local dir = vector.subtract(under, above) -- Only build when it's legal local abovenodedef = minetest.registered_nodes[minetest.get_node(above).name] @@ -273,13 +271,6 @@ minetest.register_node("mcl_signs:wall_sign", { local wdir = minetest.dir_to_wallmounted(dir) local placer_pos = placer:getpos() - if placer_pos then - dir = { - x = above.x - placer_pos.x, - y = above.y - placer_pos.y, - z = above.z - placer_pos.z - } - end local fdir = minetest.dir_to_facedir(dir)