aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/playerstats
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-07-07 20:35:21 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-07-07 20:35:21 -0400
commitdabee21244cdcacc9b49b2ee0d006876970e6001 (patch)
tree05c0064e2f5287cf2e82a9debdbad49717de3954 /src/main/java/com/thatgravyboat/skyblockhud/playerstats
parent81f11c4bdfd7444440f1c17315c40a57796db419 (diff)
downloadSkyblockHud-Death-Defied-dabee21244cdcacc9b49b2ee0d006876970e6001.tar.gz
SkyblockHud-Death-Defied-dabee21244cdcacc9b49b2ee0d006876970e6001.tar.bz2
SkyblockHud-Death-Defied-dabee21244cdcacc9b49b2ee0d006876970e6001.zip
Format because yes
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/playerstats')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java b/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java
index 5340fad..32e23a3 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java
@@ -3,6 +3,8 @@ package com.thatgravyboat.skyblockhud.playerstats;
import com.thatgravyboat.skyblockhud.SkyblockHud;
import com.thatgravyboat.skyblockhud.Utils;
import com.thatgravyboat.skyblockhud.overlay.RPGHud;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.IChatComponent;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
@@ -10,9 +12,6 @@ import net.minecraftforge.fml.common.eventhandler.EventPriority;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
public class ActionBarParsing {
private static String lastActionBar = "";
@@ -66,7 +65,7 @@ public class ActionBarParsing {
message = DefenseReplaceRegex.matcher(message).replaceAll("");
message = ManaReplaceRegex.matcher(message).replaceAll("");
Matcher overflowMatcher = ManaOverflowReplaceRegex.matcher(message);
- if (overflowMatcher.find()){
+ if (overflowMatcher.find()) {
message = overflowMatcher.replaceAll("\u00A73\u02AC " + overflowMatcher.group(3));
}