diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-17 01:26:21 -0230 |
---|---|---|
committer | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-17 01:26:21 -0230 |
commit | e364de18cbcbc9f334d890703812876789374bab (patch) | |
tree | d9360da1aaba43d88a2637ac73d9a15bd374886a /src/main/java/com/thatgravyboat/skyblockhud/SkyblockHud.java | |
parent | 3f3a68b898930c9c33ff852e6d0d8270835c4b98 (diff) | |
download | SkyblockHud-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.java | 3 |
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()) { |