From 0aa0841b764b0f784373c89990b470d352f93cb7 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sun, 16 Dec 2018 02:44:01 -0500 Subject: [PATCH] better turtle.condense --- sys/extensions/6.tl3.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/extensions/6.tl3.lua b/sys/extensions/6.tl3.lua index 04e248a..f231f4b 100644 --- a/sys/extensions/6.tl3.lua +++ b/sys/extensions/6.tl3.lua @@ -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