From 05eb8cd961ce768b351a8b59afdcc34af337354d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 22 Feb 2024 21:14:22 -0600 Subject: [PATCH] Mine Changes --- src/engine/objects/Mine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index e698a73d..69b7bbc6 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -186,7 +186,7 @@ public class Mine extends AbstractGameObject { writer.putString(mine.mineType.name); writer.putString(mine.zoneName + " {" + mine.capSize + " Man}"); writer.putInt(mine.production.hash); - writer.putInt(mine.production.baseProduction); + writer.putInt(mine.getModifiedProductionAmount()); writer.putInt(mine.getModifiedProductionAmount()); //TODO calculate range penalty here writer.putInt(3600); //window in seconds @@ -336,7 +336,7 @@ public class Mine extends AbstractGameObject { if (!MineQueries.CHANGE_RESOURCE(this, resource)) return false; - if(this.isActive) + if(this.isActive || this.hasProduced) return false; this.production = resource;