From da073feb08a422102ffa7b2bbc79cdf70a22eb08 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 19 Jan 2023 15:42:18 -0500 Subject: [PATCH] Errant mines active at startup. --- src/engine/objects/Mine.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index b1b0af8d..f4b5ae29 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -103,10 +103,11 @@ public class Mine extends AbstractGameObject { this.owningGuild = Guild.getGuild(ownerUID); Guild nation = null; - if (!this.owningGuild.isErrant()) { - this.guildName = this.owningGuild.getName(); - this.guildTag = this.owningGuild.getGuildTag(); - nation = this.owningGuild.getNation(); + if (this.owningGuild.isErrant()) { + this.guildName = ""; + this.guildTag = GuildTag.ERRANT; + nation = Guild.getErrantGuild(); + this.owningGuild = Guild.getErrantGuild(); this.setActive(true); } else { this.guildName = ""; @@ -114,6 +115,11 @@ public class Mine extends AbstractGameObject { nation = Guild.getErrantGuild(); this.owningGuild = Guild.getErrantGuild(); this.setActive(false); + + this.guildName = this.owningGuild.getName(); + this.guildTag = this.owningGuild.getGuildTag(); + nation = this.owningGuild.getNation(); + this.setActive(false); } if (!nation.isErrant()) {