fixed turtle defrag

This commit is contained in:
2024-01-28 15:46:37 +01:00
parent 6170fdd0d3
commit c9e0ceef32

View File

@@ -165,7 +165,9 @@ class InvManager {
botState.count -= transferCount; botState.count -= transferCount;
invState.set(slot, botState); invState.set(slot, botState);
if (count - transferCount <= 0) { count -= transferCount;
if (count <= 0) {
break; break;
} }
} }