it compiles?

This commit is contained in:
Jake Potrebic
2024-12-15 14:35:59 -08:00
parent 9bb6731cc4
commit 4cc2be301d
7 changed files with 95 additions and 16 deletions

View File

@@ -65,8 +65,8 @@
.apply(instance, MutableComponent::new)
);
+ // Paper start - adventure; create separate codec for each locale
+ final Codec<Component> origCodec = codec;
+ codec = new Codec<>() {
+ final Codec<Component> origCodec = codec1;
+ codec1 = new Codec<>() {
+ @Override
+ public <T> DataResult<com.mojang.datafixers.util.Pair<Component, T>> decode(final DynamicOps<T> ops, final T input) {
+ return origCodec.decode(ops, input);