forked from MagicBane/Server
Merged the two errant guild methods.
This commit is contained in:
@@ -373,7 +373,7 @@ class GuildInfoMessageType5 extends GuildInfoMessageType {
|
||||
if(pc != null && g != null && g.getObjectUUID() != 0) {
|
||||
Guild n = g.getNation();
|
||||
if(n == null) {
|
||||
n = Guild.getErrantNation();
|
||||
n = Guild.getErrantGuild();
|
||||
}
|
||||
|
||||
writer.putInt(ago.getObjectType().ordinal());
|
||||
@@ -412,7 +412,7 @@ class GuildInfoMessageType5 extends GuildInfoMessageType {
|
||||
writer.putInt(GuildStatusController.getTitle(pc.getGuildStatus())); //Title
|
||||
writer.putInt(g.getCharter());
|
||||
|
||||
if(g.getNation().equals(Guild.getErrantNation()))
|
||||
if(g.getNation().equals(Guild.getErrantGuild()))
|
||||
writer.putString("Errant");
|
||||
else
|
||||
writer.putString("City");
|
||||
|
||||
@@ -725,18 +725,12 @@ Guild.serializeForClientMsg(guild,writer, null, false);
|
||||
|
||||
public static Guild getErrantGuild() {
|
||||
|
||||
return Guild.getErrantNation();
|
||||
}
|
||||
|
||||
public static Guild getErrantNation() {
|
||||
if (Guild.errant == null)
|
||||
Guild.errant = new Guild("None", null, 10, "Despot Rule", GuildTag.ERRANT, 0);
|
||||
|
||||
return Guild.errant;
|
||||
}
|
||||
|
||||
/*
|
||||
* Game Object Manager
|
||||
*/
|
||||
public static Guild getGuild(final int objectUUID) {
|
||||
|
||||
if (objectUUID == 0)
|
||||
|
||||
Reference in New Issue
Block a user