Fix filter not updating after nbt deserialize

This commit is contained in:
DBotThePony 2022-06-08 13:12:11 +07:00
parent 50cac6d1b5
commit 0e140ad4f4
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -265,6 +265,10 @@ class ItemFilter(
for ((i, value) in it.withIndex()) { for ((i, value) in it.withIndex()) {
if (value is CompoundTag) { if (value is CompoundTag) {
filter[i] = ItemStack.of(value) filter[i] = ItemStack.of(value)
if (!filter[i].isEmpty) {
linkedFilter.add(filter[i])
}
} }
} }
} }