From 4c214398471a3f86f6fa801151e99e7b2cd73332 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 7 Jul 2024 20:53:52 -0500 Subject: [PATCH] serialize the stronghold mine --- src/engine/objects/Mine.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 1a81ad66..552f2d82 100644 --- a/src/engine/objects/Mine.java +++ b/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.putString(mine.guildName); - GuildTag._serializeForDisplay(mine.guildTag, writer); - writer.putString(mine.nationName); - GuildTag._serializeForDisplay(mine.nationTag, writer); + if (mine.isStronghold) { + writer.putString(""); + GuildTag._serializeForDisplay(Guild.getErrantGuild().getGuildTag(), 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) { Logger.error("Failed TO Serialize Mine Because: " + e.getMessage()); }