forked from mff/player_inactive
Change deprecated getpos method to get_pos
This commit is contained in:
parent
86e0699d52
commit
ed50232075
2
init.lua
2
init.lua
@ -13,7 +13,7 @@ local last_pos = { }
|
|||||||
local function check_moved()
|
local function check_moved()
|
||||||
for _, p in ipairs(minetest.get_connected_players()) do
|
for _, p in ipairs(minetest.get_connected_players()) do
|
||||||
local plname = p:get_player_name()
|
local plname = p:get_player_name()
|
||||||
local pos = p:getpos()
|
local pos = p:get_pos()
|
||||||
local kicked
|
local kicked
|
||||||
if last_pos[plname] then
|
if last_pos[plname] then
|
||||||
local d = vector.distance(last_pos[plname], pos)
|
local d = vector.distance(last_pos[plname], pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user