From a70e1f30bdc1e0fee3396edb08afb4ffb2078c70 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 23 Oct 2023 00:51:55 +0700 Subject: [PATCH] Fix furnaces not dropping their containers in block break --- .../mc/otm/block/entity/tech/PoweredFurnaceBlockEntity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/PoweredFurnaceBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/PoweredFurnaceBlockEntity.kt index faded59a3..b853d37be 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/PoweredFurnaceBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/PoweredFurnaceBlockEntity.kt @@ -42,6 +42,11 @@ class PoweredFurnaceBlockEntity( val inputs = immutableList(2) { MatteryContainer(this::itemContainerUpdated, 1) } val outputs = immutableList(2) { MatteryContainer(this::itemContainerUpdated, 1) } + init { + inputs.forEach { addDroppableContainer(it) } + outputs.forEach { addDroppableContainer(it) } + } + val energyConfig = ConfigurableEnergy(energy) val itemConfig = ConfigurableItemHandler( input = CombinedItemHandler(inputs.map { it.handler(HandlerFilter.OnlyIn) }),