Fix typo in function

This commit is contained in:
jordan4ibanez 2021-04-23 22:34:40 -04:00
parent c37a82d4a2
commit 6eb3eef215

View file

@ -67,12 +67,12 @@ mobs.detect_closest_player_within_radius = function(self, line_of_sight, radius,
end end
--do a default radius max --do a default radius max
local shortest_disance = radius + 1 local shortest_distance = radius + 1
--sort through players and find the closest player --sort through players and find the closest player
for player,distance in pairs(players_in_area) do for player,distance in pairs(players_in_area) do
if distance < shortest_disance then if distance < shortest_distance then
shortest_disance = distance shortest_distance = distance
winner_player = player winner_player = player
end end
end end