This commit is contained in:
Anuken
2020-11-24 10:23:28 -05:00
parent 058b2ddfce
commit 7d43856735
8 changed files with 22 additions and 6 deletions

View File

@@ -208,6 +208,8 @@ public class Universe{
//add production, making sure that it's capped
sector.info.production.each((item, stat) -> sector.info.items.add(item, Math.min((int)(stat.mean * newSecondsPassed * scl), sector.info.storageCapacity - sector.info.items.get(item))));
//prevent negative values with unloaders
sector.info.items.checkNegative();
sector.saveInfo();
}