1.7.10 compatibility

This commit is contained in:
kepler155c
2018-02-17 04:51:04 -05:00
parent d7b91eca7b
commit ebad012099
2 changed files with 6 additions and 2 deletions

View File

@@ -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)

View File

@@ -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