milo: refactor item page

This commit is contained in:
kepler155c@gmail.com
2019-01-03 05:24:16 -05:00
parent 00e698eb18
commit dd0f37d9dd
9 changed files with 373 additions and 283 deletions

View File

@@ -27,7 +27,6 @@ local directions = Util.transpose {
}
Event.on('turtle_inventory', function()
print('processing')
local s, m = pcall(function()
local direction
@@ -43,10 +42,11 @@ Event.on('turtle_inventory', function()
end
turtle.eachFilledSlot(function(s)
print('sending')
enderChest().pullItems(direction, s.index)
end)
end)
if s and not m then
if not s and m then
_G.printError(m)
end
print('idle')