Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-08 09:10:10 +01:00
Ursprung
54de77a110
Commit
2cea70e643
@ -323,7 +323,7 @@ public class EntityPackets1_13 extends LegacyEntityRewriter<Protocol1_12_2To1_13
|
|||||||
// Rewrite Custom Name from Chat to String
|
// Rewrite Custom Name from Chat to String
|
||||||
registerMetaHandler().filter(Entity1_13Types.EntityType.ENTITY, true, 2).handle(e -> {
|
registerMetaHandler().filter(Entity1_13Types.EntityType.ENTITY, true, 2).handle(e -> {
|
||||||
Metadata meta = e.getData();
|
Metadata meta = e.getData();
|
||||||
String value = (String) meta.getValue();
|
String value = meta.getValue().toString();
|
||||||
if (value.isEmpty()) return meta;
|
if (value.isEmpty()) return meta;
|
||||||
meta.setValue(ChatRewriter.jsonTextToLegacy(value));
|
meta.setValue(ChatRewriter.jsonTextToLegacy(value));
|
||||||
return meta;
|
return meta;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren