From dd1db4ed2dfdeb762743c40c57879da00a339b94 Mon Sep 17 00:00:00 2001 From: Luzifer Senpai Date: Sun, 5 Apr 2026 14:51:15 +0200 Subject: [PATCH] DualMEOutput Hatch now also pushes fluids into the me system --- .../dual/DualMEOutputHatchPartMachine.kt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/lu/kolja/expandedgt/common/machines/dual/DualMEOutputHatchPartMachine.kt b/src/main/kotlin/lu/kolja/expandedgt/common/machines/dual/DualMEOutputHatchPartMachine.kt index 35afd04..085ae8f 100644 --- a/src/main/kotlin/lu/kolja/expandedgt/common/machines/dual/DualMEOutputHatchPartMachine.kt +++ b/src/main/kotlin/lu/kolja/expandedgt/common/machines/dual/DualMEOutputHatchPartMachine.kt @@ -83,10 +83,20 @@ class DualMEOutputHatchPartMachine(holder: IMachineBlockEntity, tier: Int): Dual override fun autoIO() { if (!this.shouldSyncME()) return if (this.updateMEStatus()) { - val grid = this.mainNode.grid - if (grid != null && !this.internalItemBuffer.isEmpty) { - this.internalItemBuffer.insertInventory(grid.storageService.inventory, this.actionSource) + val node = this.mainNode + + node.grid?.let { + val inventory = it.storageService.inventory + + if (!internalItemBuffer.isEmpty) { + internalItemBuffer.insertInventory(inventory, this.actionSource) + } + + if (!internalFluidBuffer.isEmpty) { + internalFluidBuffer.insertInventory(inventory, this.actionSource) + } } + this.updateInventorySubscription() } }