From a5eb2fce7529b16c7827b7eb9bcef456c55764bf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 5 Sep 2024 19:24:46 -0500 Subject: [PATCH] mine management to show correct production amount --- src/engine/objects/Mine.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 1d4efca0..882b6b20 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -247,8 +247,7 @@ public class Mine extends AbstractGameObject { // Only inactive mines are returned. for (Mine mine : Mine.mineMap.keySet()) { - if (mine.owningGuild.getObjectUUID() == guildID && - mine.isActive == false) + if (mine.owningGuild.getObjectUUID() == guildID) mineList.add(mine); } return mineList; @@ -416,7 +415,7 @@ public class Mine extends AbstractGameObject { writer.putString(this.mineType.name); writer.putString(this.zoneName); writer.putInt(this.production.hash); - writer.putInt(this.production.baseProduction); + writer.putInt(this.getModifiedProductionAmount()); writer.putInt(this.getModifiedProductionAmount()); //TODO calculate range penalty here writer.putInt(3600); //window in seconds writer.putInt(this.isExpansion() ? this.mineType.xpacHash : this.mineType.hash);