summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-04 16:17:37 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-04 16:17:37 -0400
commit8b20a069d3fe2b241e5e3af047d6958ebac5756e (patch)
treec2e6d58e6414f201055136a4bbe9e82ae7e983aa
parent9dd533f4a0bb313d50d8d67f7cdf4cce9a30ab4e (diff)
downloadunifieddyes-8b20a069d3fe2b241e5e3af047d6958ebac5756e.tar
unifieddyes-8b20a069d3fe2b241e5e3af047d6958ebac5756e.tar.gz
unifieddyes-8b20a069d3fe2b241e5e3af047d6958ebac5756e.tar.bz2
unifieddyes-8b20a069d3fe2b241e5e3af047d6958ebac5756e.tar.xz
unifieddyes-8b20a069d3fe2b241e5e3af047d6958ebac5756e.zip
rotation fixes for compat with minetest 0.4.16
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index b376e1e..35b2e72 100644
--- a/init.lua
+++ b/init.lua
@@ -208,7 +208,7 @@ end)
function unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
local node = minetest.get_node(pos)
local yaw = placer:get_look_horizontal()
- local dir = minetest.yaw_to_dir(yaw-1.5)
+ local dir = minetest.yaw_to_dir(yaw) -- -1.5)
local pitch = placer:get_look_vertical()
local fdir = minetest.dir_to_wallmounted(dir)
@@ -227,7 +227,7 @@ end
function unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
local node = minetest.get_node(pos)
local yaw = placer:get_look_horizontal()
- local dir = minetest.yaw_to_dir(yaw)
+ local dir = minetest.yaw_to_dir(yaw+1.5)
local fdir = minetest.dir_to_wallmounted(dir)
minetest.swap_node(pos, { name = node.name, param2 = fdir })
end