1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

boost negative income correctly

This commit is contained in:
kikelkik 2021-03-14 17:57:48 +01:00
parent d15c2a77d0
commit 1726f4ba4b

View File

@ -46,7 +46,7 @@ public class Boost {
double f = income;
if (income > 0 || income < 0 && Jobs.getGCManager().applyToNegativeIncome)
f = income + ((income > 0D ? income : -income) * getFinal(BT, false, false));
f = income + income * getFinal(BT, false, false);
if (income > 0 && f < 0 || income < 0 && f > 0)
f = 0;