From 0f2900fa5589298930556b56bb58757490a552ce Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 30 Apr 2015 00:30:25 -0700 Subject: [PATCH] Bugfix: orientation --- init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 94da30b..259e75a 100644 --- a/init.lua +++ b/init.lua @@ -22,8 +22,11 @@ local warp = function(player, dest) for i = 1,table.getn(warps) do if warps[i].name == dest then player:setpos({x = warps[i].x, y = warps[i].y, z = warps[i].z}) - player:set_look_yaw(warps[i].yaw) - player:set_look_pitch(warps[i].pitch) + -- MT Core FIXME + -- get functions don't output proper values for set! + -- https://github.com/minetest/minetest/issues/2658 + player:set_look_yaw(warps[i].yaw - (math.pi/2)) + player:set_look_pitch(0 - warps[i].pitch) minetest.chat_send_player(player:get_player_name(), "Warped to \"" .. dest .. "\"") minetest.log("action", player:get_player_name() .. " warped to \"" .. dest .. "\"") minetest.sound_play("warps_plop", {