diff --git a/apis/chestAdapter18.lua b/apis/chestAdapter18.lua index 5a17fb5..2ba5b87 100644 --- a/apis/chestAdapter18.lua +++ b/apis/chestAdapter18.lua @@ -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) diff --git a/apps/chestManager.lua b/apps/chestManager.lua index 7a55c90..98cd7fa 100644 --- a/apps/chestManager.lua +++ b/apps/chestManager.lua @@ -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