Fix Party distance measuring worlds.

dev
sigonasr2 9 years ago
parent a41de55117
commit 2ac3667437
  1. BIN
      TwosideKeeper.jar
  2. 2
      src/sig/plugin/TwosideKeeper/PartyManager.java

Binary file not shown.

@ -178,7 +178,7 @@ public class PartyManager {
private static void AddNearbyPlayersToSameParty(Player sourcep) {
for (Player checkp : Bukkit.getOnlinePlayers()) {
if (!IsInParty(checkp) && sourcep.getLocation().distanceSquared(checkp.getLocation())<=Math.pow(TwosideKeeper.PARTY_CHUNK_SIZE,2)) {
if (!IsInParty(checkp) && checkp.getWorld().equals(sourcep.getWorld()) && sourcep.getLocation().distanceSquared(checkp.getLocation())<=Math.pow(TwosideKeeper.PARTY_CHUNK_SIZE,2)) {
AddPlayerToParty(checkp,GetCurrentParty(sourcep));
AddNearbyPlayersToSameParty(checkp);
}

Loading…
Cancel
Save