Replace getpos() with get_pos()

This commit is contained in:
Wuzzy 2019-02-01 06:33:07 +01:00
parent 1f1361d179
commit e789801662
58 changed files with 105 additions and 105 deletions

View file

@ -31,7 +31,7 @@ minetest.register_on_joinplayer(function(player)
sprinting = false,
timeOut = 0,
shouldSprint = false,
lastPos = player:getpos(),
lastPos = player:get_pos(),
sprintDistance = 0,
}
end)
@ -69,7 +69,7 @@ minetest.register_globalstep(function(dtime)
players[playerName]["shouldSprint"] = false
end
local playerPos = player:getpos()
local playerPos = player:get_pos()
--If the player is sprinting, create particles behind and cause exhaustion
if playerInfo["sprinting"] == true and gameTime % 0.1 == 0 then