summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-05-18 05:44:31 -0400
committerGitHub <noreply@github.com>2017-05-18 05:44:31 -0400
commit83261d5db41fcec3dcdb76256f0ae70404ad9f7b (patch)
treeaaf55728e35487966207fbd5c6b9b20f993a3cbe
parentdf177c26a75ec1880704b24dafe402cfe91cfe33 (diff)
parentdf3f1b18abb0a09ad30e8ea528fdc40712941fba (diff)
downloadunifieddyes-83261d5db41fcec3dcdb76256f0ae70404ad9f7b.tar
unifieddyes-83261d5db41fcec3dcdb76256f0ae70404ad9f7b.tar.gz
unifieddyes-83261d5db41fcec3dcdb76256f0ae70404ad9f7b.tar.bz2
unifieddyes-83261d5db41fcec3dcdb76256f0ae70404ad9f7b.tar.xz
unifieddyes-83261d5db41fcec3dcdb76256f0ae70404ad9f7b.zip
Merge pull request #8 from AntumDeluge/master
Replace deprecated call to 'get_look_yaw' with 'get_look_horizontal'
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 9b85903..e91f727 100644
--- a/init.lua
+++ b/init.lua
@@ -207,7 +207,7 @@ end)
function unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
local node = minetest.get_node(pos)
- local yaw = placer:get_look_yaw()
+ local yaw = placer:get_look_horizontal()
local dir = minetest.yaw_to_dir(yaw-1.5)
local pitch = placer:get_look_vertical()
@@ -226,7 +226,7 @@ end
function unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
local node = minetest.get_node(pos)
- local yaw = placer:get_look_yaw()
+ 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 })