From 1726f4ba4bc9eed39d23bc41f72e451f5c75501a Mon Sep 17 00:00:00 2001 From: kikelkik Date: Sun, 14 Mar 2021 17:57:48 +0100 Subject: [PATCH] boost negative income correctly --- src/main/java/com/gamingmesh/jobs/container/Boost.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/container/Boost.java b/src/main/java/com/gamingmesh/jobs/container/Boost.java index a1d4bfc1..af098a30 100644 --- a/src/main/java/com/gamingmesh/jobs/container/Boost.java +++ b/src/main/java/com/gamingmesh/jobs/container/Boost.java @@ -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;