Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Use ChatRewriter.legacyTextToJson in metadata rewriting
Dieser Commit ist enthalten in:
Ursprung
faabe5afb2
Commit
c709b019e1
@ -28,7 +28,7 @@ public class MetadataRewriter {
|
|||||||
if (metadata.getId() == 2) {
|
if (metadata.getId() == 2) {
|
||||||
metadata.setMetaType(MetaType1_13.OptChat);
|
metadata.setMetaType(MetaType1_13.OptChat);
|
||||||
if (metadata.getValue() != null && !((String) metadata.getValue()).isEmpty()) {
|
if (metadata.getValue() != null && !((String) metadata.getValue()).isEmpty()) {
|
||||||
metadata.setValue(Protocol1_9TO1_8.fixJson((String) metadata.getValue()));
|
metadata.setValue(ChatRewriter.legacyTextToJson((String) metadata.getValue()));
|
||||||
} else {
|
} else {
|
||||||
metadata.setValue(null);
|
metadata.setValue(null);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren