Fixed #3540 / Fixed #3544 / Fixed #3542

This commit is contained in:
Anuken
2020-11-23 09:12:36 -05:00
parent 8d91a9b014
commit 075be1a862
10 changed files with 25 additions and 16 deletions

View File

@@ -64,8 +64,8 @@ public class ResearchDialog extends BaseDialog{
ItemSeq cached = sector.items();
cache.put(sector, cached);
cached.each((item, amount) -> {
values[item.id] += amount;
total += amount;
values[item.id] += Math.max(amount, 0);
total += Math.max(amount, 0);
});
}
}