diff options
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch new file mode 100644 index 0000000000..c9f3a2ae67 --- /dev/null +++ b/patch-remap/mache-vineflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch @@ -0,0 +1,24 @@ +--- a/net/minecraft/util/datafix/DataFixers.java ++++ b/net/minecraft/util/datafix/DataFixers.java +@@ -442,7 +277,20 @@ + builder.addFixer(new VillagerTradeFix(schema43, false)); + Schema schema44 = builder.addSchema(1456, SAME_NAMESPACED); + builder.addFixer(new EntityItemFrameDirectionFix(schema44, false)); +- Schema schema45 = builder.addSchema(1458, SAME_NAMESPACED); ++ Schema schema45 = builder.addSchema(1458, DataFixers.SAME_NAMESPACED); ++ ++ // CraftBukkit start ++ builder.addFixer(new com.mojang.datafixers.DataFix(schema45, false) { ++ @Override ++ protected com.mojang.datafixers.TypeRewriteRule makeRule() { ++ return this.fixTypeEverywhereTyped("Player CustomName", this.getInputSchema().getType(DataConverterTypes.PLAYER), (typed) -> { ++ return typed.update(DSL.remainderFinder(), (dynamic) -> { ++ return EntityCustomNameToComponentFix.fixTagCustomName(dynamic); ++ }); ++ }); ++ } ++ }); ++ // CraftBukkit end + builder.addFixer(new EntityCustomNameToComponentFix(schema45, false)); + builder.addFixer(new ItemCustomNameToComponentFix(schema45, false)); + builder.addFixer(new BlockEntityCustomNameToComponentFix(schema45, false)); |