From c4c15fb047efcb16e2999733cb2d2e32aab6a61b Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Tue, 23 Apr 2024 22:18:58 +0200 Subject: [PATCH] Add EntityRewriterBase#getDisplayVisibilityMetaValue (#725) --- .../viabackwards/api/rewriters/EntityRewriterBase.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java index b23e0e47..aecdda5b 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java @@ -105,10 +105,14 @@ public abstract class EntityRewriterBase 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(); }