Replace deprecated functions

master
Wuzzy 2019-08-24 18:05:47 +02:00
parent 1062c7620f
commit 692b57a29d
1 changed files with 2 additions and 5 deletions

View File

@ -56,12 +56,9 @@ end
function pep.moledig(playername)
local player = minetest.get_player_by_name(playername)
local yaw = player:get_look_yaw()
-- fix stupid oddity of Minetest, adding pi/2 to the actual player's look yaw...
-- TODO: Remove this code as soon as Minetest fixes this.
yaw = yaw - math.pi/2
local yaw = player:get_look_horizontal()
local pos = vector.round(player:getpos())
local pos = vector.round(player:get_pos())
local v = pep.yaw_to_vector(yaw)