forked from MagicBane/Server
Cleanup of guildstate on boot
This commit is contained in:
@@ -760,18 +760,9 @@ public class Guild extends AbstractWorldObject {
|
||||
Logger.error("FAILED TO LOAD SUB GUILDS FOR UUID " + this.getObjectUUID());
|
||||
}
|
||||
|
||||
if (this.nation == this && subGuildList.size() > 0)
|
||||
this.guildState = GuildState.Nation;
|
||||
else if (this.nation.equals(this))
|
||||
this.guildState = GuildState.Sovereign;
|
||||
else if (!this.nation.isEmptyGuild() && this.cityUUID != 0)
|
||||
this.guildState = GuildState.Province;
|
||||
else if (!this.nation.isEmptyGuild())
|
||||
this.guildState = GuildState.Sworn;
|
||||
else
|
||||
this.guildState = GuildState.Errant;
|
||||
this.guildState = GuildManager.calcuateGuildState(this);
|
||||
|
||||
if (this.cityUUID == 0)
|
||||
if (this.getOwnedCity() == null)
|
||||
return;
|
||||
|
||||
// Calculate number of realms this guild controls
|
||||
|
||||
Reference in New Issue
Block a user