mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-02 09:09:55 +01:00
parent
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user