From bbe507448483bf958b45ce2f69f2a3aff8b40464 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Tue, 5 Feb 2019 10:28:00 +1300 Subject: [PATCH] Replace :getpos() with :get_pos(). --- scriptblock.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptblock.lua b/scriptblock.lua index e9462e4..a6085e0 100644 --- a/scriptblock.lua +++ b/scriptblock.lua @@ -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()