From 8cf828ed002496e4c5830040c9b13f396b708bed Mon Sep 17 00:00:00 2001 From: Foz Date: Fri, 4 Nov 2016 06:47:04 -0900 Subject: [PATCH] Fix coffeetable placement. Fixes minetest-mods/homedecor_modpack #326 --- lrfurn/coffeetable.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lrfurn/coffeetable.lua b/lrfurn/coffeetable.lua index afce15e9..7f7afaa1 100644 --- a/lrfurn/coffeetable.lua +++ b/lrfurn/coffeetable.lua @@ -29,6 +29,8 @@ minetest.register_node("lrfurn:coffeetable_back", { local node = minetest.get_node(pos) local param2 = node.param2 + local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false) + if lrfurn.check_forward(pos, fdir, false, placer) then node.name = "lrfurn:coffeetable_front"