diff --git a/src/main/kotlin/net/shadowfacts/phycon/block/extractor/ExtractorBlockEntity.kt b/src/main/kotlin/net/shadowfacts/phycon/block/extractor/ExtractorBlockEntity.kt index 0305717..5db555a 100644 --- a/src/main/kotlin/net/shadowfacts/phycon/block/extractor/ExtractorBlockEntity.kt +++ b/src/main/kotlin/net/shadowfacts/phycon/block/extractor/ExtractorBlockEntity.kt @@ -95,7 +95,9 @@ class ExtractorBlockEntity: DeviceBlockEntity(PhyBlockEntities.EXTRACTOR), for (slot in 0 until inventory.slotCount) { val slotStack = inventory.getInvStack(slot) if (slotStack.isEmpty) continue - dispatchItemStack(slotStack) { insertion -> + val extractable = inventory.extractStack(slot, ExactItemStackFilter(slotStack), ItemStack.EMPTY, slotStack.count, Simulation.SIMULATE) + if (extractable.isEmpty) continue + dispatchItemStack(extractable) { insertion -> insertion.inventory = inventory insertion.inventorySlot = slot }