diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-08-05 00:30:35 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-08-05 00:30:35 -0400 |
commit | abd656382da708b8cd77df1f4f0a74f2287618c5 (patch) | |
tree | 132a58ec3dc307e171ae7a90bb05bfa235d914cf /src/main/java/me/Danker/features/CustomMusic.java | |
parent | b3eb1191c49eee416b71859ee8303293e9aed72b (diff) | |
download | SkyblockMod-abd656382da708b8cd77df1f4f0a74f2287618c5.tar.gz SkyblockMod-abd656382da708b8cd77df1f4f0a74f2287618c5.tar.bz2 SkyblockMod-abd656382da708b8cd77df1f4f0a74f2287618c5.zip |
Add trophy fishing tracker
Also update trivia answers and add mod init event
Diffstat (limited to 'src/main/java/me/Danker/features/CustomMusic.java')
-rw-r--r-- | src/main/java/me/Danker/features/CustomMusic.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/features/CustomMusic.java b/src/main/java/me/Danker/features/CustomMusic.java index 8ce8c05..e6f8131 100644 --- a/src/main/java/me/Danker/features/CustomMusic.java +++ b/src/main/java/me/Danker/features/CustomMusic.java @@ -2,6 +2,7 @@ package me.Danker.features; import me.Danker.DankersSkyblockMod; import me.Danker.commands.ToggleCommand; +import me.Danker.events.ModInitEvent; import me.Danker.handlers.ScoreboardHandler; import me.Danker.utils.Utils; import net.minecraft.client.Minecraft; @@ -13,6 +14,7 @@ import net.minecraft.world.World; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.client.event.sound.PlaySoundEvent; import net.minecraftforge.event.world.WorldEvent; +import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.EventPriority; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; @@ -196,6 +198,11 @@ public class CustomMusic { } } + @SubscribeEvent + public void init(ModInitEvent event) { + init(event.configDirectory); + } + public static void init(String configDirectory) { if (configDirectory == null) return; File directory = new File(configDirectory + "/dsmmusic"); |