mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-01-02 18:48:06 +01:00
Allow null mapped entity name
This commit is contained in:
parent
fb7cd2d9e3
commit
ac5fbdd7f4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user