From 814cf1b717d9f39c2a3c3a134482fc3c73e71ea7 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Sun, 8 Nov 2020 16:14:06 +0100 Subject: [PATCH] Fix get team by pos --- team.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/team.lua b/team.lua index beea184..4140b0f 100644 --- a/team.lua +++ b/team.lua @@ -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