Update patches to latest 1.21.4 #1

Merged
Chaoscaot merged 242 commits from update/1.21.4 into main 2025-04-23 22:27:11 +02:00
Showing only changes of commit 938a84fc39 - Show all commits

View File

@@ -76,6 +76,20 @@ public class DataComponentValueConverterProviderImpl implements DataComponentVal
throw new IllegalArgumentException(e);
}
}
),
DataComponentValueConverterRegistry.Conversion.convert(
DataComponentValue.TagSerializable.class,
GsonDataComponentValue.class,
(key, tagSerializable) -> {
Tag decodedSnbt;
try {
decodedSnbt = tagSerializable.asBinaryTag().get(PaperAdventure.NBT_CODEC);
} catch (CommandSyntaxException e) {
throw new IllegalArgumentException("Unable to parse SNBT value", e);
}
return GsonDataComponentValue.gsonDataComponentValue(NbtOps.INSTANCE.convertTo(JsonOps.INSTANCE, decodedSnbt));
}
)
);
}