mirror of
https://repo.or.cz/minetest_pep.git
synced 2025-03-15 12:21:21 +00:00
Replace deprecated functions
This commit is contained in:
parent
1062c7620f
commit
692b57a29d
1 changed files with 2 additions and 5 deletions
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…
Add table
Reference in a new issue