Browse Source

serialize the stronghold mine

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

7
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);
if (mine.isStronghold) {
writer.putString("");
GuildTag._serializeForDisplay(Guild.getErrantGuild().getGuildTag(), writer);
writer.putString("");
GuildTag._serializeForDisplay(Guild.getErrantGuild().getGuildTag(), writer);
}else {
writer.putString(mine.guildName); writer.putString(mine.guildName);
GuildTag._serializeForDisplay(mine.guildTag, writer); GuildTag._serializeForDisplay(mine.guildTag, writer);
writer.putString(mine.nationName); writer.putString(mine.nationName);
GuildTag._serializeForDisplay(mine.nationTag, writer); 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