aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
diff options
context:
space:
mode:
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 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();