mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Heighten export cap when production is negative
This commit is contained in:
parent
dec5a2aaaf
commit
bac4bb8c8f
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue