aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2022-11-28 23:03:33 +0100
committerGitHub <noreply@github.com>2022-11-28 23:03:33 +0100
commit7b72c468816b6334b2e7fe16c629afeeffeaec2e (patch)
tree0b1be9c26847f4bb8ef811a62a3dee631f4d61a7 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java
parent0ae77db2326ea1cddde739cc1594f5518753d486 (diff)
downloadnotenoughupdates-7b72c468816b6334b2e7fe16c629afeeffeaec2e.tar.gz
notenoughupdates-7b72c468816b6334b2e7fe16c629afeeffeaec2e.tar.bz2
notenoughupdates-7b72c468816b6334b2e7fe16c629afeeffeaec2e.zip
Added settings for Fallen Star and Powder Ghast Waypoints (#451)
* Added settings for Fallen Star and Powder Ghast Waypoints * I suggest the wording 'at the location' in these sentences. Less repeating 'of's.
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java
index c1c7dca1..6b2c9ac9 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java
@@ -114,13 +114,13 @@ public class DwarvenMinesWaypoints {
@SubscribeEvent
public void onChat(ClientChatReceivedEvent event) {
Matcher matcherGhast = ghastRegex.matcher(event.message.getFormattedText());
- if (matcherGhast.find()) {
+ if (matcherGhast.find() && NotEnoughUpdates.INSTANCE.config.mining.powderGhastWaypoint) {
dynamicLocation = Utils.cleanColour(matcherGhast.group(1).trim());
dynamicName = EnumChatFormatting.GOLD + "Powder Ghast";
dynamicMillis = System.currentTimeMillis();
} else {
Matcher matcherStar = fallenStarRegex.matcher(event.message.getFormattedText());
- if (matcherStar.find()) {
+ if (matcherStar.find() && NotEnoughUpdates.INSTANCE.config.mining.fallenStarWaypoint) {
dynamicLocation = Utils.cleanColour(matcherStar.group(1).trim());
dynamicName = EnumChatFormatting.DARK_PURPLE + "Fallen Star";
dynamicMillis = System.currentTimeMillis();