diff --git a/src/lib/turtle/InvManager.hx b/src/lib/turtle/InvManager.hx index 582dd0c..4fb55c9 100644 --- a/src/lib/turtle/InvManager.hx +++ b/src/lib/turtle/InvManager.hx @@ -165,7 +165,9 @@ class InvManager { botState.count -= transferCount; invState.set(slot, botState); - if (count - transferCount <= 0) { + count -= transferCount; + + if (count <= 0) { break; } }