From d2e3a413ee1e9ad3b8c24590991f947499bae718 Mon Sep 17 00:00:00 2001 From: IG2WTC Date: Sat, 3 Aug 2024 23:39:16 +0200 Subject: [PATCH] Var fix --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 5147909..869dec7 100644 --- a/js/main.js +++ b/js/main.js @@ -429,10 +429,10 @@ function profit(crop) { itemsMade = Math.min(maxJarProcesses, usableCrops - total_harvest); if (usableCrops > maxJarProcesses) { - cropsLeft += totalProduce - maxJarProcesses; + cropsLeft += total_crops - maxJarProcesses; } else{ - cropsLeft += totalProduce - usableCrops; + cropsLeft += total_crops - usableCrops; } } if (produce == 4 && !options.byHarvest) {