diff options
author | hannibal00212 <hannibal00212@users.noreply.github.com> | 2022-07-08 10:43:29 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2022-07-08 10:43:29 +0000 |
commit | 9626b9b5cdf6e347ea1ab2d8f1c38e7986126942 (patch) | |
tree | 31fc6cc986b39d13299c95bbaf1e89dff807fd50 /src/main/java/com/thatgravyboat/skyblockhud | |
parent | 8cbd6310e6cda9fa89e09e38c8d1db7fd69ebcae (diff) | |
download | skyhanni-9626b9b5cdf6e347ea1ab2d8f1c38e7986126942.tar.gz skyhanni-9626b9b5cdf6e347ea1ab2d8f1c38e7986126942.tar.bz2 skyhanni-9626b9b5cdf6e347ea1ab2d8f1c38e7986126942.zip |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/LorenzMod.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/LorenzMod.java b/src/main/java/com/thatgravyboat/skyblockhud/LorenzMod.java index a07604db0..c17368f88 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/LorenzMod.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/LorenzMod.java @@ -33,7 +33,8 @@ public class LorenzMod { public static final String VERSION = "0.1"; @Deprecated - public static SBHConfig config;//TODO delete + public static SBHConfig config; //TODO delete + public static Features feature; private File configFile; @@ -45,7 +46,6 @@ public class LorenzMod { @EventHandler public void preInit(FMLPreInitializationEvent event) { - new BazaarApi(); MinecraftForge.EVENT_BUS.register(this); @@ -99,8 +99,7 @@ public class LorenzMod { 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) { @@ -114,7 +113,7 @@ public class LorenzMod { // WarpHandler.save(); // } // - Runtime.getRuntime().addShutdownHook(new Thread(this::saveConfig)); + Runtime.getRuntime().addShutdownHook(new Thread(this::saveConfig)); // Runtime.getRuntime().addShutdownHook(new Thread(TrackerFileLoader::saveTrackerStatsFile)); } @@ -126,8 +125,7 @@ public class LorenzMod { try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(configFile), StandardCharsets.UTF_8))) { writer.write(gson.toJson(feature)); } - } catch (IOException ignored) { - } + } catch (IOException ignored) {} } // @EventHandler |