Browse Source

serialize the stronghold mine

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
4c21439847
  1. 15
      src/engine/objects/Mine.java

15
src/engine/objects/Mine.java

@ -222,10 +222,17 @@ public class Mine extends AbstractGameObject {
writer.putInt(mine.isExpansion() ? mine.mineType.xpacHash : mine.mineType.hash); writer.putInt(mine.isExpansion() ? mine.mineType.xpacHash : mine.mineType.hash);
writer.putString(mine.guildName); if (mine.isStronghold) {
GuildTag._serializeForDisplay(mine.guildTag, writer); writer.putString("");
writer.putString(mine.nationName); GuildTag._serializeForDisplay(Guild.getErrantGuild().getGuildTag(), writer);
GuildTag._serializeForDisplay(mine.nationTag, writer); writer.putString("");
GuildTag._serializeForDisplay(Guild.getErrantGuild().getGuildTag(), writer);
}else {
writer.putString(mine.guildName);
GuildTag._serializeForDisplay(mine.guildTag, writer);
writer.putString(mine.nationName);
GuildTag._serializeForDisplay(mine.nationTag, writer);
}
} catch (Exception e) { } catch (Exception e) {
Logger.error("Failed TO Serialize Mine Because: " + e.getMessage()); Logger.error("Failed TO Serialize Mine Because: " + e.getMessage());
} }

Loading…
Cancel
Save