milo tweaks

This commit is contained in:
kepler155c@gmail.com
2018-12-05 01:28:42 -05:00
parent 74aa9829c3
commit 0041ffaa5e

View File

@@ -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,11 +28,14 @@ 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 = Util.shallowCopy(item)
else
item = Milo:splitKey(BLAZE_POWDER)
end
item.requested = 1 item.requested = 1
Milo:requestCrafting(item) Milo:requestCrafting(item)
end end
end end
end
if list[1] and not list[4] then if list[1] and not list[4] then
-- brewing has completd -- brewing has completd