milo tweaks
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
local Craft = require('craft2')
|
local Craft = require('craft2')
|
||||||
local itemDB = require('itemDB')
|
local itemDB = require('itemDB')
|
||||||
local Milo = require('milo')
|
local Milo = require('milo')
|
||||||
|
local Util = require('util')
|
||||||
|
|
||||||
local BLAZE_POWDER = "minecraft:blaze_powder:0"
|
local BLAZE_POWDER = "minecraft:blaze_powder:0"
|
||||||
|
|
||||||
@@ -27,9 +28,12 @@ function PotionImportTask:cycle(context)
|
|||||||
else
|
else
|
||||||
local item = itemDB:get(BLAZE_POWDER)
|
local item = itemDB:get(BLAZE_POWDER)
|
||||||
if item then
|
if item then
|
||||||
item.requested = 1
|
item = Util.shallowCopy(item)
|
||||||
Milo:requestCrafting(item)
|
else
|
||||||
|
item = Milo:splitKey(BLAZE_POWDER)
|
||||||
end
|
end
|
||||||
|
item.requested = 1
|
||||||
|
Milo:requestCrafting(item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user