aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadeleaan <70163122+Madeleaan@users.noreply.github.com>2024-07-07 16:33:36 +0200
committerGitHub <noreply@github.com>2024-07-07 16:33:36 +0200
commitfc86297a19ada5150ab0d693c192d5eedea86837 (patch)
treeddfc812207fd8ffc9dd496e145b2f11c62c5b771
parent84bc8901e22e0c02573169d99aff8b12bdbf9d0a (diff)
downloadnotenoughupdates-fc86297a19ada5150ab0d693c192d5eedea86837.tar.gz
notenoughupdates-fc86297a19ada5150ab0d693c192d5eedea86837.tar.bz2
notenoughupdates-fc86297a19ada5150ab0d693c192d5eedea86837.zip
Fix title in wiki renderer for pets (#1223)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java3
1 files changed, 2 insertions, 1 deletions
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.");