From 87b041bf3af7abcf5052800e74363a611b77b589 Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Fri, 19 Jul 2024 11:00:00 +0200 Subject: [PATCH] Fix block predicate conversion in 1.20.3->1.20.5 (#4025) --- .../v1_20_3to1_20_5/rewriter/StructuredDataConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/StructuredDataConverter.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/StructuredDataConverter.java index d77fb5edf..16b241854 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/StructuredDataConverter.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/StructuredDataConverter.java @@ -739,8 +739,8 @@ public final class StructuredDataConverter { predicatedListTag.add(serializeBlockPredicate(predicate, tagKey)); } else { for (final int id : holders.ids()) { - final String name = toMappedItemName(id); - if (name.isEmpty()) { + final String name = Protocol1_20_3To1_20_5.MAPPINGS.blockName(id); + if (name == null) { if (backupInconvertibleData) { // TODO Backup }