From 7ce73bdb520f6316cfce658304783d3a603d0ac2 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 6 Apr 2023 15:13:32 +0700 Subject: [PATCH] Make fluid tanks drop item contents when broken --- .../mc/otm/block/entity/decorative/FluidTankBlockEntity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/FluidTankBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/FluidTankBlockEntity.kt index 1012264a9..ea6cdad3f 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/FluidTankBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/FluidTankBlockEntity.kt @@ -32,9 +32,9 @@ class FluidTankBlockEntity(blockPos: BlockPos, blockState: BlockState) : Mattery var synchronizedFluid by synchronizer.Field(FluidStack.EMPTY!!, FluidStackValueCodec) private set - val fillInput = MatteryContainer(::setChangedLight, 1) - val drainInput = MatteryContainer(::setChangedLight, 1) - val output = MatteryContainer(::setChangedLight, 1) + val fillInput = MatteryContainer(::setChangedLight, 1).also(::addDroppableContainer) + val drainInput = MatteryContainer(::setChangedLight, 1).also(::addDroppableContainer) + val output = MatteryContainer(::setChangedLight, 1).also(::addDroppableContainer) val itemConfig = ConfigurableItemHandler( input = CombinedItemHandler(