aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
diff options
context:
space:
mode:
authorThatGravyBoat <ThatGravyBoat@users.noreply.github.com>2021-07-27 07:09:21 +0000
committerGitHub Action <actions@github.com>2021-07-27 07:09:21 +0000
commit8f14ae49e5cfd329a70895e74ebb22bc7559f32e (patch)
treea9b6e44d5b404fba4ff1f14462bb592bdbfa16bb /src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
parent7809a1362c9644c9bfb69d8563a13e3f1ed3354a (diff)
downloadSkyblockHud-Death-Defied-8f14ae49e5cfd329a70895e74ebb22bc7559f32e.tar.gz
SkyblockHud-Death-Defied-8f14ae49e5cfd329a70895e74ebb22bc7559f32e.tar.bz2
SkyblockHud-Death-Defied-8f14ae49e5cfd329a70895e74ebb22bc7559f32e.zip
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java b/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
index 9b3da58..99f04e9 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
@@ -97,7 +97,9 @@ public class SkyblockHud {
((IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager()).registerReloadListener(new Textures());
configDirectory = new File(event.getModConfigurationDirectory(), "skyblockhud");
- try { configDirectory.mkdir(); } catch (Exception ignored){}
+ try {
+ configDirectory.mkdir();
+ } catch (Exception ignored) {}
configFile = new File(configDirectory, "sbh-config.json");
@@ -194,7 +196,7 @@ public class SkyblockHud {
String stripped = message.replace("your profile was changed to:", "").replace("(co-op)", "").trim();
MinecraftForge.EVENT_BUS.post(new ProfileSwitchedEvent(stripped));
}
- if (message.startsWith("you are playing on profile:")){
+ if (message.startsWith("you are playing on profile:")) {
String stripped = message.replace("you are playing on profile:", "").replace("(co-op)", "").trim();
MinecraftForge.EVENT_BUS.post(new ProfileJoinedEvent(stripped));
}