aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/MatchoAlert.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-03-25 04:36:31 -0500
committeringlettronald <inglettronald@gmail.com>2023-03-25 04:36:31 -0500
commit43d07fc791e63bba61695e0d4b766b78eb699132 (patch)
tree69111eb055f0e68fdf388046fb0812f4f3f2f004 /src/main/kotlin/dulkirmod/features/MatchoAlert.kt
parent71af70d22e9a55a58c36642a745e81aa91851375 (diff)
downloadDulkirMod-43d07fc791e63bba61695e0d4b766b78eb699132.tar.gz
DulkirMod-43d07fc791e63bba61695e0d4b766b78eb699132.tar.bz2
DulkirMod-43d07fc791e63bba61695e0d4b766b78eb699132.zip
Config Syntax Change and switch to oneconfig
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/MatchoAlert.kt')
-rw-r--r--src/main/kotlin/dulkirmod/features/MatchoAlert.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/features/MatchoAlert.kt b/src/main/kotlin/dulkirmod/features/MatchoAlert.kt
index 50f433e..54abc99 100644
--- a/src/main/kotlin/dulkirmod/features/MatchoAlert.kt
+++ b/src/main/kotlin/dulkirmod/features/MatchoAlert.kt
@@ -1,7 +1,7 @@
package dulkirmod.features
import dulkirmod.DulkirMod
-import dulkirmod.config.Config
+import dulkirmod.config.DulkirConfig
import dulkirmod.utils.TabListUtils
import dulkirmod.utils.TitleUtils
import dulkirmod.utils.Utils
@@ -11,7 +11,7 @@ object MatchoAlert {
var hasSentAlert = false
fun alert() {
- if (!Config.notifyMatcho) return
+ if (!DulkirConfig.notifyMatcho) return
if (!Utils.isInSkyblock()) return
if (TabListUtils.area != "Crimson Isle") {
@@ -19,10 +19,10 @@ object MatchoAlert {
}
if (TabListUtils.explosivity && !hasSentAlert) {
- val color = Utils.getColorString(Config.bestiaryNotifColor)
+ val color = Utils.getColorString(DulkirConfig.bestiaryNotifColor)
TitleUtils.drawStringForTime("${color}Matcho", 5000)
- if (Config.bestiaryAlertSounds)
- DulkirMod.mc.thePlayer.playSound("mob.villager.yes", 1f * Config.bestiaryNotifVol, 0f)
+ if (DulkirConfig.bestiaryAlertSounds)
+ DulkirMod.mc.thePlayer.playSound("mob.villager.yes", 1f * DulkirConfig.bestiaryNotifVol, 0f)
hasSentAlert = true
} else if (!TabListUtils.explosivity) hasSentAlert = false
}