Fix excessive network traffic from Extractor
This commit is contained in:
parent
f56ab5dc7e
commit
396e811109
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue