mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-04 09:30:25 +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) {
|
if (data != null) {
|
||||||
EntityData entityData = getEntityData(type);
|
EntityData entityData = getEntityData(type);
|
||||||
if (entityData != null && entityData.getMobName() != null
|
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.getMetaType().getTypeID() == displayNameMetaType.getTypeID()) {
|
||||||
data.setValue(entityData.getMobName());
|
data.setValue(entityData.getMobName());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user