aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-07-17 01:26:21 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-07-17 01:26:21 -0230
commite364de18cbcbc9f334d890703812876789374bab (patch)
treed9360da1aaba43d88a2637ac73d9a15bd374886a /src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
parent3f3a68b898930c9c33ff852e6d0d8270835c4b98 (diff)
downloadSkyblockHud-Death-Defied-e364de18cbcbc9f334d890703812876789374bab.tar.gz
SkyblockHud-Death-Defied-e364de18cbcbc9f334d890703812876789374bab.tar.bz2
SkyblockHud-Death-Defied-e364de18cbcbc9f334d890703812876789374bab.zip
Added the ability to turn off the map for certain locations and added the ability for texture pack devs to add textures for npc dialogue
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java b/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
index ab957a0..763e5fc 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java
@@ -27,6 +27,7 @@ import java.nio.charset.StandardCharsets;
import java.util.Set;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
+import net.minecraft.client.resources.IReloadableResourceManager;
import net.minecraft.scoreboard.ScoreObjective;
import net.minecraft.scoreboard.Scoreboard;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
@@ -87,6 +88,8 @@ public class SkyblockHud {
MinecraftForge.EVENT_BUS.register(new FarmHouseHandler());
Commands.init();
+ ((IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager()).registerReloadListener(new NpcDialogue());
+
configFile = new File(event.getModConfigurationDirectory(), "sbh-config.json");
if (configFile.exists()) {