fixed bug in FightDetector
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user