milo tweaks

This commit is contained in:
kepler155c@gmail.com
2018-12-05 00:55:49 -05:00
parent aa3e3e615c
commit c79c93e4d7
3 changed files with 28 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ local Util = require('util')
local colors = _G.colors
local device = _G.device
local turtle = _G.turtle
local context = Milo:getContext()
local machine
@@ -114,13 +115,14 @@ function pages.confirmation:validate()
end
Milo:saveMachineRecipe(recipe, result, machine.name)
turtle.emptyInventory()
local displayName = itemDB:getName(result)
UI:setPage('listing', {
filter = displayName,
message = 'Learned: ' .. displayName,
})
return true
end