mirror of
https://github.com/kepler155c/opus
synced 2025-11-13 13:57:11 +00:00
better turtle.condense
This commit is contained in:
@@ -883,6 +883,9 @@ function turtle.condense()
|
|||||||
slots[j].count = slots[j].count - transferred
|
slots[j].count = slots[j].count - transferred
|
||||||
slots[i].count = slots[i].count + transferred
|
slots[i].count = slots[i].count + transferred
|
||||||
slots[i].key = slots[j].key
|
slots[i].key = slots[j].key
|
||||||
|
if slots[j].count == 0 then
|
||||||
|
slots[j].key = nil
|
||||||
|
end
|
||||||
if slots[i].count == 64 then
|
if slots[i].count == 64 then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user