diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/container/slotted/FilteredContainerSlot.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/container/slotted/FilteredContainerSlot.kt index d78c871bf..4e2d50f3d 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/container/slotted/FilteredContainerSlot.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/container/slotted/FilteredContainerSlot.kt @@ -44,7 +44,7 @@ open class FilteredContainerSlot( filter = ItemFilter.EMPTY if ("filter" in nbt) { - ItemFilter.CODEC.decode(provider.createSerializationContext(NbtOps.INSTANCE), nbt) + ItemFilter.CODEC.decode(provider.createSerializationContext(NbtOps.INSTANCE), nbt["filter"]) .ifError { LOGGER.error("Unable to deserialize item filter: ${it.message()}") } .resultOrPartial().map { it.first }.ifPresent { filter = it } }