1.7.10 compatibility
This commit is contained in:
@@ -147,6 +147,10 @@ function ChestAdapter:provide(item, qty, slot, direction)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ChestAdapter:eject(item, qty, direction)
|
function ChestAdapter:eject(item, qty, direction)
|
||||||
|
|
||||||
|
-- fix
|
||||||
|
direction = self.getMetadata().state.facing
|
||||||
|
|
||||||
local s, m = pcall(function()
|
local s, m = pcall(function()
|
||||||
local stacks = self.list()
|
local stacks = self.list()
|
||||||
local maxStack = itemDB:getMaxCount(item)
|
local maxStack = itemDB:getMaxCount(item)
|
||||||
|
|||||||
@@ -1316,8 +1316,8 @@ Event.onInterval(5, function()
|
|||||||
if item.count <= 0 then
|
if item.count <= 0 then
|
||||||
demandCrafting[key] = nil
|
demandCrafting[key] = nil
|
||||||
item.statusCode = 'success'
|
item.statusCode = 'success'
|
||||||
if inventoryAdapter.eject and item.eject then
|
if item.eject then
|
||||||
inventoryAdapter:eject(item, item.ocount, inventoryAdapter.getMetadata().state.facing)
|
inventoryAdapter:eject(item, item.ocount, 'front')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user