Replace :getpos() with :get_pos().

This commit is contained in:
luk3yx 2019-02-05 10:28:00 +13:00
parent 33919d5b4b
commit bbe5074484
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ scriptblocks.register_with_alias('player_detector', {
local nearest = nil
local min_distance = math.huge
for index, player in pairs(players) do
local distance = vector.distance(pos, player:getpos())
local distance = vector.distance(pos, player:get_pos())
if distance < min_distance then
min_distance = distance
nearest = player:get_player_name()