aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-04-28 00:11:03 -0400
committerbowser0000 <bowser0000@gmail.com>2022-04-28 00:11:03 -0400
commitb3cb573fcfb7afbb0206d29b71432ab68c82a876 (patch)
treebf0d6f5e2d62acfb1f7c5cab025cdb08f86ff018
parent0f7bb4b43fcbb50a33077e2532a53eaf6300e30d (diff)
downloadSkyblockMod-b3cb573fcfb7afbb0206d29b71432ab68c82a876.tar.gz
SkyblockMod-b3cb573fcfb7afbb0206d29b71432ab68c82a876.tar.bz2
SkyblockMod-b3cb573fcfb7afbb0206d29b71432ab68c82a876.zip
Add alert sound to config
Default to random.orb
-rw-r--r--src/main/java/me/Danker/handlers/ConfigHandler.java2
-rw-r--r--src/main/java/me/Danker/utils/Utils.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/handlers/ConfigHandler.java b/src/main/java/me/Danker/handlers/ConfigHandler.java
index 5db8a17..bf20d3c 100644
--- a/src/main/java/me/Danker/handlers/ConfigHandler.java
+++ b/src/main/java/me/Danker/handlers/ConfigHandler.java
@@ -9,6 +9,7 @@ import me.Danker.commands.ToggleCommand;
import me.Danker.features.*;
import me.Danker.features.loot.*;
import me.Danker.features.puzzlesolvers.*;
+import me.Danker.utils.Utils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.util.EnumChatFormatting;
@@ -598,6 +599,7 @@ public class ConfigHandler {
DankersSkyblockMod.firstLaunch = initBoolean("misc", "firstLaunch", true);
EndOfFarmAlert.min = initDouble("misc", "farmMin", -78.5);
EndOfFarmAlert.max = initDouble("misc", "farmMax", 79.5);
+ Utils.TITLE_SOUND = initString("misc", "titleSound", "random.orb");
// Locations
ScaledResolution scaled = new ScaledResolution(Minecraft.getMinecraft());
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java
index c9021f7..2229d65 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -50,6 +50,7 @@ public class Utils {
put('D', 500);
put('M', 1000);
}};
+ public static String TITLE_SOUND;
public static int getItems(String item) {
Minecraft mc = Minecraft.getMinecraft();
@@ -97,7 +98,7 @@ public class Utils {
}
public static void createTitle(String text, int seconds) {
- Minecraft.getMinecraft().thePlayer.playSound("random.orb", 1, (float) 0.5);
+ Minecraft.getMinecraft().thePlayer.playSound(TITLE_SOUND, 1, (float) 0.5);
DankersSkyblockMod.titleTimer = seconds * 20;
DankersSkyblockMod.showTitle = true;
DankersSkyblockMod.titleText = text;