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)