Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 00:22:53 +01:00
Fix json entity names
Dieser Commit ist enthalten in:
Ursprung
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());
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren