Replace deprecated functions
parent
1062c7620f
commit
692b57a29d
7
init.lua
7
init.lua
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue