forked from MagicBane/Server
Cleaner implementation
This commit is contained in:
@@ -820,12 +820,16 @@ public class Guild extends AbstractWorldObject {
|
|||||||
if (!DbManager.GuildQueries.UPDATE_PARENT(subGuild.getObjectUUID(), WorldServer.worldUUID))
|
if (!DbManager.GuildQueries.UPDATE_PARENT(subGuild.getObjectUUID(), WorldServer.worldUUID))
|
||||||
Logger.debug("Failed to set Nation Guild for Guild with UID " + subGuild.getObjectUUID());
|
Logger.debug("Failed to set Nation Guild for Guild with UID " + subGuild.getObjectUUID());
|
||||||
|
|
||||||
if (subGuild.getOwnedCity() == null) {
|
switch (subGuild.guildState) {
|
||||||
subGuild.guildState = GuildState.Errant;
|
case Sworn:
|
||||||
subGuild.nation = Guild.getErrantNation();
|
subGuild.guildState = GuildState.Errant;
|
||||||
} else {
|
subGuild.nation = Guild.getErrantNation();
|
||||||
subGuild.nation = subGuild;
|
break;
|
||||||
subGuild.guildState = GuildState.Sovereign;
|
case Protectorate:
|
||||||
|
case Petitioner:
|
||||||
|
subGuild.nation = subGuild;
|
||||||
|
subGuild.guildState = GuildState.Sovereign;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove from collection
|
// Remove from collection
|
||||||
|
|||||||
Reference in New Issue
Block a user