mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 16:41:06 +01:00
Fix typo in function
This commit is contained in:
parent
c37a82d4a2
commit
6eb3eef215
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue