mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-02 09:09:55 +01:00
Fix json entity names
This commit is contained in:
parent
2cea70e643
commit
6bb8ae1dfc
@ -193,7 +193,7 @@ public abstract class EntityRewriterBase<T extends BackwardsProtocol> extends Re
|
||||
if (data != null) {
|
||||
EntityData entityData = getEntityData(type);
|
||||
if (entityData != null && entityData.getMobName() != null
|
||||
&& (data.getValue() == null || ((String) data.getValue()).isEmpty())
|
||||
&& (data.getValue() == null || data.getValue().toString().isEmpty())
|
||||
&& data.getMetaType().getTypeID() == displayNameMetaType.getTypeID()) {
|
||||
data.setValue(entityData.getMobName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user