From 2abb957a55257800a3361ed3c4bbfcf5266d9def Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 10 Feb 2020 18:22:34 +0800 Subject: [PATCH] fix craft all for 1 piece missing --- job.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/job.go b/job.go index a10976d..2c7ee64 100644 --- a/job.go +++ b/job.go @@ -2094,13 +2094,7 @@ func jobCraftAll(j Job) { for k, i := range ratioItems { recipes, _ := totalRecipes[k] parts, _ := totalParts[k] - if k == "a83" || k == "a84" { - log.Printf("jobCraftAll[%s] DEBUG > ratio : %d | parts : %d | recipes : %d\n", k, i, parts, recipes) - } - if (recipes > 0 && parts > (i-1)) || (parts >= i) { - if k == "a83" || k == "a84" { - log.Printf("jobCraftAll[%s] STORE > ratio : %d | parts : %d | recipes : %d\n", k, i, parts, recipes) - } + if (recipes > 0 && parts >= (i-1)) || (parts >= i) { completeItems[k] = float64(MinInt64(recipes*i, parts) / i) maxItems = MaxInt64(maxItems, int64(completeItems[k])) }