aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-15 19:43:54 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-15 19:43:54 +0200
commit58b2a4cc1510c5f883d85baf0c2d2f1067195e4a (patch)
treefb3a8a7f65d2abf5472284529b43de5062a421ee /src/main/java/at/hannibal2/skyhanni
parentc3ef925f73a1091141453a0bb31819c2f9fc33ea (diff)
parent97b1c4bd37b05c5181f547ee32180263d1c26d93 (diff)
downloadskyhanni-58b2a4cc1510c5f883d85baf0c2d2f1067195e4a.tar.gz
skyhanni-58b2a4cc1510c5f883d85baf0c2d2f1067195e4a.tar.bz2
skyhanni-58b2a4cc1510c5f883d85baf0c2d2f1067195e4a.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java
index a1fe9f739..f3fe2c8f7 100644
--- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java
+++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java
@@ -81,16 +81,14 @@ public class SkyHanniMod {
try {
//noinspection ResultOfMethodCallIgnored
configDirectory.mkdir();
- } catch (Exception ignored) {
- }
+ } catch (Exception ignored) {}
configFile = new File(configDirectory, "config.json");
if (configFile.exists()) {
try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(configFile), StandardCharsets.UTF_8))) {
feature = gson.fromJson(reader, Features.class);
- } catch (Exception ignored) {
- }
+ } catch (Exception ignored) {}
}
if (feature == null) {
@@ -111,8 +109,7 @@ public class SkyHanniMod {
try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(configFile), StandardCharsets.UTF_8))) {
writer.write(gson.toJson(feature));
}
- } catch (IOException ignored) {
- }
+ } catch (IOException ignored) {}
}
public static GuiScreen screenToOpen = null;