From 833bc1b25101e20c3a5a49bd6ff7a62929e242df Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Fri, 28 Feb 2014 22:41:47 +0100 Subject: [PATCH] Fixed bug where disbanded parties could still see alliance chat --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index 93fe944d0..efccafccc 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -260,6 +260,11 @@ public final class PartyManager { processPartyLeaving(UserManager.getPlayer(member)); } + // Disband the alliance between the disbanded party and it's ally + if (party.getAlly() != null) { + party.getAlly().setAlly(null); + } + parties.remove(party); }