This commit is contained in:
kepler155c
2018-10-24 06:51:05 -04:00
parent 9664077f2e
commit e45aad7ed0
8 changed files with 122 additions and 60 deletions

View File

@@ -82,6 +82,7 @@ local listingPage = UI.Page {
[ 'control-e' ] = 'eject',
[ 'control-s' ] = 'eject_stack',
[ 'control-m' ] = 'machines',
[ 'control-l' ] = 'resume',
},
displayMode = 0,
}
@@ -113,10 +114,12 @@ function listingPage.grid:getDisplayValues(row)
end
function listingPage:eventHandler(event)
debug(event)
if event.type == 'quit' then
UI:exitPullEvents()
elseif event.type == 'resume' then
Milo:resumeCrafting()
elseif event.type == 'eject' then
local item = self.grid:getSelected()
if item then

View File

@@ -10,7 +10,7 @@ function PotionImportTask:cycle(context)
for _, v in pairs(device) do
if v.type == 'minecraft:brewing_stand' and v.getBrewTime() == 0 then
local list = v.list()
if not list[4] and list[1] then
if not list[4] then
for i = 1, 3 do
if list[i] then
context.inventoryAdapter:insert(i, 1, nil, list[i], v.name)