mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 14:57:18 +07:00
Heighten export cap when production is negative
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user