Fix get team by pos

master
HimbeerserverDE 2020-11-08 16:14:06 +01:00
parent 95bbfb4dba
commit 814cf1b717
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ bedwars.get_team_by_pos = function(pos)
end
local smallest = {x = 300, z = 300}
for team, diff in pairs(diffs) do
if diff.x < smallest.x and diff.z < smallest.z then
if diff.x + diff.z < smallest.x + smallest.z then
smallest.x = diff.x
smallest.z = diff.z
end