From 0073f41be6c88ee9a98436ed98b874d4ef69c5f3 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 3 Aug 2023 20:05:26 +0700 Subject: [PATCH] ugly --- .../mc/otm/block/entity/tech/CobblerBlockEntity.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/CobblerBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/CobblerBlockEntity.kt index c6f20e2d0..92fc99454 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/CobblerBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/CobblerBlockEntity.kt @@ -23,14 +23,7 @@ class CobblerBlockEntity(blockPos: BlockPos, blockState: BlockState) } val container = MatteryContainer(this::itemContainerUpdated, CONTAINER_SIZE).also(::addDroppableContainer) - - val itemHandler = container.handler(object : HandlerFilter { - override fun canInsert(slot: Int, stack: ItemStack): Boolean { - return false - } - }) - - val itemConfig = ConfigurableItemHandler(output = itemHandler) + val itemConfig = ConfigurableItemHandler(output = container.handler(HandlerFilter.OnlyOut)) init { savetable(::container, INVENTORY_KEY)