3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-27 08:30:10 +01:00

Add EntityRewriterBase#getDisplayVisibilityMetaValue (#725)

Dieser Commit ist enthalten in:
EnZaXD 2024-04-23 22:18:58 +02:00 committet von GitHub
Ursprung ab11527c86
Commit c4c15fb047
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -105,10 +105,14 @@ public abstract class EntityRewriterBase<C extends ClientboundPacketType, T exte
private void addDisplayVisibilityMeta(List<Metadata> metadataList) { private void addDisplayVisibilityMeta(List<Metadata> metadataList) {
if (alwaysShowOriginalMobName()) { if (alwaysShowOriginalMobName()) {
removeMeta(displayVisibilityIndex, metadataList); 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() { protected boolean alwaysShowOriginalMobName() {
return ViaBackwards.getConfig().alwaysShowOriginalMobName(); return ViaBackwards.getConfig().alwaysShowOriginalMobName();
} }