From 951f77491c4b1550420c1dfca51508eaf969159c Mon Sep 17 00:00:00 2001 From: Niklp <89982526+Niklp09@users.noreply.github.com> Date: Sun, 24 Sep 2023 13:19:47 +0200 Subject: [PATCH] Fix use of deprecated get_look_yaw() (#62) --- homedecor_seating/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homedecor_seating/init.lua b/homedecor_seating/init.lua index b70ddf8a..5639fd6f 100644 --- a/homedecor_seating/init.lua +++ b/homedecor_seating/init.lua @@ -72,8 +72,8 @@ end function lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing) local node = minetest.get_node(pos) local colorbits = node.param2 - (node.param2 % 8) - local yaw = placer:get_look_yaw() - local dir = minetest.yaw_to_dir(yaw-1.5) + local yaw = placer:get_look_horizontal() + local dir = minetest.yaw_to_dir(yaw) local fdir = minetest.dir_to_wallmounted(dir) minetest.swap_node(pos, { name = node.name, param2 = fdir+colorbits }) end