aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/playerstats
diff options
context:
space:
mode:
authorErymanthus[#5074] | (u/)RayDeeUx <51521765+RayDeeUx@users.noreply.github.com>2022-08-29 14:13:33 -0400
committerGitHub <noreply@github.com>2022-08-29 14:13:33 -0400
commitd98eeb612bf0be34563c33381cd0422f2fc6d6c2 (patch)
treed741b50ec639e723259e1d1341c7a8abc98d8c8e /src/main/java/com/thatgravyboat/skyblockhud/playerstats
parent50f5ff6cf4fb9fc37270114317d0192788c1c64e (diff)
parent1e870d3d55b4965c24919c0a69bdd2fa4958b7f8 (diff)
downloadSkyblockHud-Death-Defied-d98eeb612bf0be34563c33381cd0422f2fc6d6c2.tar.gz
SkyblockHud-Death-Defied-d98eeb612bf0be34563c33381cd0422f2fc6d6c2.tar.bz2
SkyblockHud-Death-Defied-d98eeb612bf0be34563c33381cd0422f2fc6d6c2.zip
Merge pull request #2 from romangraef/drillbar
Allow Drill bar to be absolute values
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/playerstats')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java b/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java
index 380f4a5..1151f8a 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java
@@ -57,7 +57,7 @@ public class ActionBarParsing {
if (SkyblockHud.hasSkyblockScoreboard() && SkyblockHud.config.rpg.showRpgHud) {
parseActionBar(event.message.getUnformattedText());
}
- if (SkyblockHud.config.mining.showDrillBar) {
+ if (SkyblockHud.config.mining.showDrillBar != 0) {
String bar = Utils.removeColor(event.message.getUnformattedText());
Matcher DrillFuelMatcher = DrillFuelRegex.matcher(bar);
if (DrillFuelMatcher.find()) {
@@ -91,7 +91,7 @@ public class ActionBarParsing {
}
event.message = lastLowEditedActionBar;
}
- if (SkyblockHud.config.mining.showDrillBar) {
+ if (SkyblockHud.config.mining.showDrillBar != 0) {
event.message = new ChatComponentText(DrillFuelReplaceRegex.matcher(event.message.getUnformattedText()).replaceAll("").trim());
}
}