Add EntityRewriterBase#getDisplayVisibilityMetaValue (#725)

This commit is contained in:
EnZaXD 2024-04-23 22:18:58 +02:00 committed by GitHub
parent ab11527c86
commit c4c15fb047
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,10 +105,14 @@ public abstract class EntityRewriterBase<C extends ClientboundPacketType, T exte
private void addDisplayVisibilityMeta(List<Metadata> metadataList) {
if (alwaysShowOriginalMobName()) {
removeMeta(displayVisibilityIndex, metadataList);
metadataList.add(new Metadata(displayVisibilityIndex, displayVisibilityMetaType, true));
metadataList.add(new Metadata(displayVisibilityIndex, displayVisibilityMetaType, getDisplayVisibilityMetaValue()));
}
}
protected Object getDisplayVisibilityMetaValue() {
return true;
}
protected boolean alwaysShowOriginalMobName() {
return ViaBackwards.getConfig().alwaysShowOriginalMobName();
}