Heighten export cap when production is negative

This commit is contained in:
Anuken 2020-12-04 15:20:15 -05:00
parent dec5a2aaaf
commit bac4bb8c8f

View File

@ -229,8 +229,9 @@ public class SectorInfo{
//cap production/export by production
production.get(item).mean = Math.min(production.get(item).mean, rawProduction.get(item).mean);
if(export.containsKey(item)){
export.get(item).mean = Math.min(export.get(item).mean, rawProduction.get(item).mean);
export.get(item).mean = Math.min(export.get(item).mean, Math.max(rawProduction.get(item).mean, -production.get(item).mean));
}
}