3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-11-17 13:30:14 +01:00

Allow null mapped entity name

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-11-09 17:58:10 +10:00
Ursprung fb7cd2d9e3
Commit ac5fbdd7f4
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -81,11 +81,11 @@ public class EntityData {
return null;
}
String name = protocol.getMappingData().mappedEntityName(key);
final String name = protocol.getMappingData().mappedEntityName(key);
if (name == null) {
ViaBackwards.getPlatform().getLogger().warning("Entity name for " + key + " not found in protocol " + protocol.getClass().getSimpleName());
name = key;
return null;
}
if (componentType == ComponentType.JSON) {
return ChatRewriter.legacyTextToJson(name);
} else if (componentType == ComponentType.TAG) {