aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorVixid <52578495+VixidDev@users.noreply.github.com>2023-01-31 08:24:50 +0000
committerGitHub <noreply@github.com>2023-01-31 19:24:50 +1100
commit3a24bfb4e8b3026b8f59a4465faadde8f800f075 (patch)
treed9c39e4b4f2a01fa3b1fa5a69e86eeb8b77ac94f /src/main/java
parent0ad9c8991a080667c81819ad6122a131ff0ad400 (diff)
downloadNotEnoughUpdates-3a24bfb4e8b3026b8f59a4465faadde8f800f075.tar.gz
NotEnoughUpdates-3a24bfb4e8b3026b8f59a4465faadde8f800f075.tar.bz2
NotEnoughUpdates-3a24bfb4e8b3026b8f59a4465faadde8f800f075.zip
Fixes NPE when minion has colour code in name (#573)
Co-authored-by: Vixid <52578495+Vixid1@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperChatLoader.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperChatLoader.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperChatLoader.java
index bef633d2..95277c6a 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperChatLoader.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperChatLoader.java
@@ -60,6 +60,7 @@ public class MinionHelperChatLoader {
String rawTier = ownMatcher.group(1);
int tier = Utils.parseRomanNumeral(rawTier);
String name = ownMatcher.group(2) + " Minion";
+ name = Utils.cleanColour(name);
setCrafted(manager.getMinionByName(name, tier));
}
@@ -80,7 +81,7 @@ public class MinionHelperChatLoader {
} catch (Exception e) {
Utils.addChatMessage(
- "[NEU] §cMinion Helper failed reading the minion upgrade message. See the logs for more info!");
+ "§c[NEU] Minion Helper failed reading the minion upgrade message. See the logs for more info!");
e.printStackTrace();
}
}