Fix json entity names

This commit is contained in:
KennyTV 2020-06-29 18:28:40 +02:00
parent 2cea70e643
commit 6bb8ae1dfc
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -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());
}