Cleanup of guildstate on boot

This commit is contained in:
2026-05-10 20:44:52 -04:00
parent f7249ba656
commit 57ab356a3a
2 changed files with 15 additions and 11 deletions
+2 -11
View File
@@ -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