Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
SPIGOT-4428: Update Player CustomName
Dieser Commit ist enthalten in:
Ursprung
e3d7b2fd96
Commit
0adc1b9989
21
nms-patches/DataConverterRegistry.patch
Normale Datei
21
nms-patches/DataConverterRegistry.patch
Normale Datei
@ -0,0 +1,21 @@
|
|||||||
|
--- a/net/minecraft/server/DataConverterRegistry.java
|
||||||
|
+++ b/net/minecraft/server/DataConverterRegistry.java
|
||||||
|
@@ -195,6 +195,18 @@
|
||||||
|
datafixerbuilder.addFixer(new DataConverterItemFrame(schema46, false));
|
||||||
|
Schema schema47 = datafixerbuilder.addSchema(1458, DataConverterRegistry.c);
|
||||||
|
|
||||||
|
+ // CraftBukkit start
|
||||||
|
+ datafixerbuilder.addFixer(new com.mojang.datafixers.DataFix(schema47, false) {
|
||||||
|
+ @Override
|
||||||
|
+ protected com.mojang.datafixers.TypeRewriteRule makeRule() {
|
||||||
|
+ return this.fixTypeEverywhereTyped("Player CustomName", this.getInputSchema().getType(DataConverterTypes.b), (typed) -> {
|
||||||
|
+ return typed.update(DSL.remainderFinder(), (dynamic) -> {
|
||||||
|
+ return DataConverterCustomNameEntity.a(dynamic);
|
||||||
|
+ });
|
||||||
|
+ });
|
||||||
|
+ }
|
||||||
|
+ });
|
||||||
|
+ // CraftBukkit end
|
||||||
|
datafixerbuilder.addFixer(new DataConverterCustomNameEntity(schema47, false));
|
||||||
|
datafixerbuilder.addFixer(new DataConverterCustomNameItem(schema47, false));
|
||||||
|
datafixerbuilder.addFixer(new DataConverterCustomNameTile(schema47, false));
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren