Skip to content

Commit

Permalink
Fix use of deprecated get_look_yaw() (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 authored Sep 24, 2023
1 parent 46c7113 commit 951f774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homedecor_seating/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 951f774

Please sign in to comment.