diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-18 05:27:24 -0230 |
---|---|---|
committer | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-18 05:27:24 -0230 |
commit | 5559861e52a788f08bc48946a9aad6dd52b373bf (patch) | |
tree | f4caac982db914fca97527f8783d26d6703bec64 /src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java | |
parent | baf3b8aa15cbd2dc0fcb4a80707557c44ee30c16 (diff) | |
download | SkyblockHud-Death-Defied-5559861e52a788f08bc48946a9aad6dd52b373bf.tar.gz SkyblockHud-Death-Defied-5559861e52a788f08bc48946a9aad6dd52b373bf.tar.bz2 SkyblockHud-Death-Defied-5559861e52a788f08bc48946a9aad6dd52b373bf.zip |
Added texture styles
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 763e5fc..74e82eb 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java @@ -18,6 +18,7 @@ import com.thatgravyboat.skyblockhud.overlay.OverlayHud; import com.thatgravyboat.skyblockhud.overlay.RPGHud; import com.thatgravyboat.skyblockhud.playerstats.ActionBarParsing; import com.thatgravyboat.skyblockhud.seasons.SeasonDateHandler; +import com.thatgravyboat.skyblockhud.textures.Textures; import com.thatgravyboat.skyblockhud.tracker.TrackerFileLoader; import com.thatgravyboat.skyblockhud.tracker.TrackerHandler; import java.awt.*; @@ -89,6 +90,7 @@ public class SkyblockHud { Commands.init(); ((IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager()).registerReloadListener(new NpcDialogue()); + ((IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager()).registerReloadListener(new Textures()); configFile = new File(event.getModConfigurationDirectory(), "sbh-config.json"); @@ -103,6 +105,8 @@ public class SkyblockHud { saveConfig(); } + Textures.setTexture(config.misc.style); + configDirectory = event.getModConfigurationDirectory(); Runtime.getRuntime().addShutdownHook(new Thread(this::saveConfig)); @@ -130,8 +134,6 @@ public class SkyblockHud { MinecraftForge.EVENT_BUS.register(new NpcDialogue()); } - // DISABLE UNTIL NEW SYSTEM - @EventHandler public void loadComplete(FMLLoadCompleteEvent event) { TrackerFileLoader.loadTrackersFile(); |