aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch
diff options
context:
space:
mode:
authorMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
committerMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
commitbee74680e607c2e29b038329f62181238911cd83 (patch)
tree708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/mache-spigotflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch
parent0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff)
downloadPaper-softspoon.tar.gz
Paper-softspoon.zip
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch
new file mode 100644
index 0000000000..a30ad435a0
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/util/datafix/DataFixers.java.patch
@@ -0,0 +1,29 @@
+--- a/net/minecraft/util/datafix/DataFixers.java
++++ b/net/minecraft/util/datafix/DataFixers.java
+@@ -455,10 +279,22 @@
+ datafixerbuilder.addFixer(new EntityItemFrameDirectionFix(schema44, false));
+ Schema schema45 = datafixerbuilder.addSchema(1458, DataFixers.SAME_NAMESPACED);
+
+- datafixerbuilder.addFixer(new EntityCustomNameToComponentFix(schema45, false));
+- datafixerbuilder.addFixer(new ItemCustomNameToComponentFix(schema45, false));
+- datafixerbuilder.addFixer(new BlockEntityCustomNameToComponentFix(schema45, false));
+- Schema schema46 = datafixerbuilder.addSchema(1460, V1460::new);
++ // 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));
++ Schema schema46 = builder.addSchema(1460, V1460::new);
+
+ datafixerbuilder.addFixer(new EntityPaintingMotiveFix(schema46, false));
+ Schema schema47 = datafixerbuilder.addSchema(1466, V1466::new);