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