Change deprecated use of player:get_look_yaw() function by player:get_look_horizontal()

This commit is contained in:
sys4-fr 2018-02-17 21:05:53 +01:00
parent 1f6cfa99b1
commit 711a19ecd9
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ minetest.register_chatcommand("camera", {
local function play(path)
local object = minetest.add_entity(player:getpos(), "camera:camera")
object:get_luaentity():init(player, 1)
object:setyaw(player:get_look_yaw())
object:setyaw(player:get_look_horizontal())
player:set_attach(object, "", {x=5,y=10,z=0}, {x=0,y=0,z=0})
object:get_luaentity().path = path
end
@ -324,7 +324,7 @@ minetest.register_chatcommand("camera", {
end
end
else
return false, "Parameters of looking target are missing (/camera look <nil|here|x,y,z)"
return false, "Parameters of looking target are missing (/camera look <nil|here|x,y,z>)"
end
elseif param1 == "speed" then
if param2 and param ~= "" then