Correct FTeamWrapper faction disband detection

This commit is contained in:
eueln 2014-11-09 21:27:03 -06:00
parent 00045b0186
commit fdce32e04c

View File

@ -50,7 +50,7 @@ public class FTeamWrapper {
FTeamWrapper wrapper = wrappers.get(faction); FTeamWrapper wrapper = wrappers.get(faction);
Set<FPlayer> factionMembers = faction.getFPlayers(); Set<FPlayer> factionMembers = faction.getFPlayers();
if (wrapper != null && Factions.getInstance().getFactionById(faction.getId()) != null) { if (wrapper != null && Factions.getInstance().getFactionById(faction.getId()) == null) {
// Faction was disbanded // Faction was disbanded
wrapper.unregister(); wrapper.unregister();
wrappers.remove(faction); wrappers.remove(faction);