aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/features
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-08-09 20:24:18 -0400
committerbowser0000 <bowser0000@gmail.com>2022-08-09 20:24:18 -0400
commitf56302bee3939677fc3fd015a97b12b5100c45b1 (patch)
treef1c927068d70ff015d98a0b882d33e70d2f3df8a /src/main/java/me/Danker/features
parent60d3517fc1f70aeeb83dd6627ade3093f7760b04 (diff)
downloadSkyblockMod-f56302bee3939677fc3fd015a97b12b5100c45b1.tar.gz
SkyblockMod-f56302bee3939677fc3fd015a97b12b5100c45b1.tar.bz2
SkyblockMod-f56302bee3939677fc3fd015a97b12b5100c45b1.zip
Fix issues with custom music volume
Fix custom music set to 50% volume on first load (ignoring config) Fix island music using hub volume
Diffstat (limited to 'src/main/java/me/Danker/features')
-rw-r--r--src/main/java/me/Danker/features/CustomMusic.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/features/CustomMusic.java b/src/main/java/me/Danker/features/CustomMusic.java
index 6c5dd08..38e4ba0 100644
--- a/src/main/java/me/Danker/features/CustomMusic.java
+++ b/src/main/java/me/Danker/features/CustomMusic.java
@@ -3,6 +3,7 @@ package me.Danker.features;
import me.Danker.DankersSkyblockMod;
import me.Danker.commands.ToggleCommand;
import me.Danker.events.ModInitEvent;
+import me.Danker.events.PostConfigInitEvent;
import me.Danker.handlers.ScoreboardHandler;
import me.Danker.utils.Utils;
import net.minecraft.client.Minecraft;
@@ -218,7 +219,7 @@ public class CustomMusic {
}
@SubscribeEvent
- public void init(ModInitEvent event) {
+ public void postConfigInit(PostConfigInitEvent event) {
init(event.configDirectory);
}
@@ -237,7 +238,7 @@ public class CustomMusic {
phase4 = new Song(directory, "phasefour", phase4Volume);
phase5 = new Song(directory, "phasefive", phase5Volume);
hub = new Song(directory, "hub", hubVolume);
- island = new Song(directory, "island", hubVolume);
+ island = new Song(directory, "island", islandVolume);
dungeonHub = new Song(directory, "dungeonhub", dungeonHubVolume);
farmingIslands = new Song(directory, "farmingislands", farmingIslandsVolume);
goldMine = new Song(directory, "goldmine", goldMineVolume);