Mine Changes
This commit is contained in:
1 parent
9909216e27
commit
05eb8cd961
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user