City realm id lookup not db load
This commit is contained in:
@@ -1434,12 +1434,15 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
return 0;
|
||||
if (player.getGuild().getOwnedCity() == null)
|
||||
return 10;
|
||||
if (player.getGuild().getOwnedCity().getRealm() == null)
|
||||
City city5 = player.getGuild().getOwnedCity();
|
||||
if (city5.realm == null)
|
||||
return 10;
|
||||
if (player.getGuild().getOwnedCity().getRealm().getRulingCity() == null)
|
||||
City city4 = player.getGuild().getOwnedCity();
|
||||
if (city4.realm.getRulingCity() == null)
|
||||
return 10;
|
||||
|
||||
if (player.getGuild().getOwnedCity().getRealm().getRulingCity().getObjectUUID() != player.getGuild().getOwnedCity().getObjectUUID())
|
||||
City city3 = player.getGuild().getOwnedCity();
|
||||
if (city3.realm.getRulingCity().getObjectUUID() != player.getGuild().getOwnedCity().getObjectUUID())
|
||||
return 10;
|
||||
int realmTitle = 1;
|
||||
if (player.getGuild().getSubGuildList() == null || player.getGuild().getSubGuildList().isEmpty())
|
||||
@@ -1447,11 +1450,14 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
for (Guild subGuild : player.getGuild().getSubGuildList()) {
|
||||
if (subGuild.getOwnedCity() == null)
|
||||
continue;
|
||||
if (subGuild.getOwnedCity().getRealm() == null)
|
||||
City city2 = subGuild.getOwnedCity();
|
||||
if (city2.realm == null)
|
||||
continue;
|
||||
if (subGuild.getOwnedCity().getRealm().getRulingCity() == null)
|
||||
City city1 = subGuild.getOwnedCity();
|
||||
if (city1.realm.getRulingCity() == null)
|
||||
continue;
|
||||
if (subGuild.getOwnedCity().getRealm().getRulingCity().getObjectUUID() != subGuild.getOwnedCity().getObjectUUID())
|
||||
City city = subGuild.getOwnedCity();
|
||||
if (city.realm.getRulingCity().getObjectUUID() != subGuild.getOwnedCity().getObjectUUID())
|
||||
continue;
|
||||
realmTitle++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user