aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-09-27 14:18:53 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-09-27 14:18:53 -0230
commit06c495fd067ed5c16b34322d41e9674319e09506 (patch)
treeaa05fcfb4f3f16dba59435814c0513b8f68062ef /src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
parentf1fd06d889162ac72395ef66043970cfe42cde5e (diff)
parent8f14ae49e5cfd329a70895e74ebb22bc7559f32e (diff)
downloadSkyblockHud-Death-Defied-06c495fd067ed5c16b34322d41e9674319e09506.tar.gz
SkyblockHud-Death-Defied-06c495fd067ed5c16b34322d41e9674319e09506.tar.bz2
SkyblockHud-Death-Defied-06c495fd067ed5c16b34322d41e9674319e09506.zip
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/main/java/com/thatgravyboat/skyblockhud/handlers/CooldownHandler.java # src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinRenderItem.java
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));
}