Correct FTeamWrapper faction disband detection
This commit is contained in:
parent
00045b0186
commit
fdce32e04c
@ -50,7 +50,7 @@ public class FTeamWrapper {
|
||||
FTeamWrapper wrapper = wrappers.get(faction);
|
||||
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
|
||||
wrapper.unregister();
|
||||
wrappers.remove(faction);
|
||||
|
Loading…
Reference in New Issue
Block a user