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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user