1
0
mirror of https://github.com/tacigar/maidroid.git synced 2025-01-10 16:20:19 +01:00

[FIX] fix get_nearest_player

This commit is contained in:
tacigar 2016-09-15 22:01:28 +09:00
parent 006ab613b5
commit 759c9fb735

View File

@ -74,6 +74,7 @@ function maidroid.maidroid.get_nearest_player(self, range_distance)
local distance = vector.distance(position, player_position) local distance = vector.distance(position, player_position)
if distance < min_distance then if distance < min_distance then
min_distance = distance
player = object player = object
end end
end end