From fc86297a19ada5150ab0d693c192d5eedea86837 Mon Sep 17 00:00:00 2001 From: Madeleaan <70163122+Madeleaan@users.noreply.github.com> Date: Sun, 7 Jul 2024 16:33:36 +0200 Subject: Fix title in wiki renderer for pets (#1223) --- src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index d87cd863..0a7b3378 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 NotEnoughUpdates contributors + * Copyright (C) 2022-2024 NotEnoughUpdates contributors * * This file is part of NotEnoughUpdates. * @@ -743,6 +743,7 @@ public class NEUOverlay extends Gui { } String internalname = item.get("internalname").getAsString(); String name = item.get("displayname").getAsString(); + name = name.replace("[Lvl {LVL}] ", ""); // Remove dynamic level prefix for pets if (NotEnoughUpdates.INSTANCE.config.itemlist.wikiInBrowser) { Utils.openUrl(infoText); Utils.addChatMessage("§e[NEU] Opening webpage in browser."); -- cgit