From c44bda92668d14009d7740410ff092ba9124ea9c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 10 Nov 2021 13:32:10 +0100 Subject: [PATCH] Hotfix spectator above team area Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/listener/TeamArea.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/TeamArea.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/TeamArea.java index 0afab2e..75a1fd8 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/TeamArea.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/TeamArea.java @@ -93,7 +93,7 @@ public class TeamArea implements Listener { return; // Always allowed in own region } - if(inRegion) { + if(region.playerInRegion(event.getTo())) { reset(event, "NO_TEAMAREA"); // Not allowed in region if(team.getSchemRegion().playerInRegion(event.getTo()) && Config.PreperationArea >= 5){ // Preventing false positives due to small extension player.kickPlayer(null);