From 9d1a5a05f5d0370979e959c06151d4bf6b514ae4 Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:48:35 +0100 Subject: [PATCH] Expose EntityRewriterBase#alwaysShowOriginalMobName (#705) --- .../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 581576fd..24d38b97 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 @@ -103,12 +103,16 @@ public abstract class EntityRewriterBase metadataList) { - if (ViaBackwards.getConfig().alwaysShowOriginalMobName()) { + if (alwaysShowOriginalMobName()) { removeMeta(displayVisibilityIndex, metadataList); metadataList.add(new Metadata(displayVisibilityIndex, displayVisibilityMetaType, true)); } } + protected boolean alwaysShowOriginalMobName() { + return ViaBackwards.getConfig().alwaysShowOriginalMobName(); + } + protected @Nullable Metadata getMeta(int metaIndex, List metadataList) { for (Metadata metadata : metadataList) { if (metadata.id() == metaIndex) {