From 337727b0f0f432857e835da8a6e10b5705dfefcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Sat, 19 Jul 2025 15:57:58 +0200 Subject: [PATCH] fixed bug in FightDetector --- .../appliances/metaGameplay/fightDetector/FightDetector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varo/src/main/java/eu/mhsl/craftattack/spawn/varo/appliances/metaGameplay/fightDetector/FightDetector.java b/varo/src/main/java/eu/mhsl/craftattack/spawn/varo/appliances/metaGameplay/fightDetector/FightDetector.java index 6b3c0d4..00781da 100644 --- a/varo/src/main/java/eu/mhsl/craftattack/spawn/varo/appliances/metaGameplay/fightDetector/FightDetector.java +++ b/varo/src/main/java/eu/mhsl/craftattack/spawn/varo/appliances/metaGameplay/fightDetector/FightDetector.java @@ -66,7 +66,7 @@ public class FightDetector extends Appliance { VaroTeam otherTeam = this.queryAppliance(Teams.class).getTeamFromPlayer(otherPlayer.getUniqueId()); if (otherTeam == null || ownTeam.equals(otherTeam)) continue; - if(player.getLocation().getWorld().equals(otherPlayer.getLocation().getWorld())) continue; + if(!player.getLocation().getWorld().equals(otherPlayer.getLocation().getWorld())) continue; if (player.getLocation().distance(otherPlayer.getLocation()) <= BLOCK_RADIUS) { this.setInFight(ownTeam);