better turtle.condense

This commit is contained in:
kepler155c@gmail.com 2018-12-16 02:44:01 -05:00
parent bd5cba8656
commit 0aa0841b76
1 changed files with 3 additions and 0 deletions

View File

@ -883,6 +883,9 @@ function turtle.condense()
slots[j].count = slots[j].count - transferred
slots[i].count = slots[i].count + transferred
slots[i].key = slots[j].key
if slots[j].count == 0 then
slots[j].key = nil
end
if slots[i].count == 64 then
break
end