Fix filter deserialization
This commit is contained in:
parent
8454db6785
commit
f5e21f5582
@ -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 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user