Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-24 23:30:17 +01:00
Allow null mapped entity name
Dieser Commit ist enthalten in:
Ursprung
fb7cd2d9e3
Commit
ac5fbdd7f4
@ -81,11 +81,11 @@ public class EntityData {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String name = protocol.getMappingData().mappedEntityName(key);
|
final String name = protocol.getMappingData().mappedEntityName(key);
|
||||||
if (name == null) {
|
if (name == null) {
|
||||||
ViaBackwards.getPlatform().getLogger().warning("Entity name for " + key + " not found in protocol " + protocol.getClass().getSimpleName());
|
return null;
|
||||||
name = key;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentType == ComponentType.JSON) {
|
if (componentType == ComponentType.JSON) {
|
||||||
return ChatRewriter.legacyTextToJson(name);
|
return ChatRewriter.legacyTextToJson(name);
|
||||||
} else if (componentType == ComponentType.TAG) {
|
} else if (componentType == ComponentType.TAG) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren