diff --git a/src/lib/classes/managers/abstract/ResourceManager.ts b/src/lib/classes/managers/abstract/ResourceManager.ts index 2e4829a..65b2b9b 100644 --- a/src/lib/classes/managers/abstract/ResourceManager.ts +++ b/src/lib/classes/managers/abstract/ResourceManager.ts @@ -65,7 +65,7 @@ export default abstract class ResourceManager { await this.calculateCurrentAvailableResources(); for(const res of resources) { const resource = this.resources.find(r => r.id === res.id); - if(resource) resource.amount += res.amount; + if(resource) resource.amount = res.amount; else this.resources.push({ id: res.id, amount: res.amount,