diff options
author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-07-27 07:09:21 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2021-07-27 07:09:21 +0000 |
commit | 8f14ae49e5cfd329a70895e74ebb22bc7559f32e (patch) | |
tree | a9b6e44d5b404fba4ff1f14462bb592bdbfa16bb /src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java | |
parent | 7809a1362c9644c9bfb69d8563a13e3f1ed3354a (diff) | |
download | SkyblockHud-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.java | 6 |
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)); } |