mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 17:28:14 +07:00
Heighten export cap when production is negative
This commit is contained in:
parent
dec5a2aaaf
commit
bac4bb8c8f
@ -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…
Reference in New Issue
Block a user