diff options
author | IlmarsXd <ilmars500@gmail.com> | 2023-02-08 16:20:04 +0200 |
---|---|---|
committer | IlmarsXd <ilmars500@gmail.com> | 2023-02-08 16:20:04 +0200 |
commit | bae1935070891639839716892cd08053cd348829 (patch) | |
tree | b7e5c4fe32b660955e6fe0d38caaf070d9ceb5f5 | |
parent | 05ca5ef3989f03ac4b9e5bacc959f9fe60cfbdcb (diff) | |
download | DulkirMod-bae1935070891639839716892cd08053cd348829.tar.gz DulkirMod-bae1935070891639839716892cd08053cd348829.tar.bz2 DulkirMod-bae1935070891639839716892cd08053cd348829.zip |
cleanup code
-rw-r--r-- | src/main/kotlin/dulkirmod/config/Config.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/features/MatchoAlert.kt | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/config/Config.kt b/src/main/kotlin/dulkirmod/config/Config.kt index 11f4ea5..6dad478 100644 --- a/src/main/kotlin/dulkirmod/config/Config.kt +++ b/src/main/kotlin/dulkirmod/config/Config.kt @@ -495,7 +495,7 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so subcategory = "Audio" ) fun demoVolume() { - DulkirMod.mc.thePlayer.playSound("mob.ghast.scream", 1f * Config.bestiaryNotifVol, 1f) + DulkirMod.mc.thePlayer.playSound("mob.ghast.scream", 1f * bestiaryNotifVol, 1f) } @Property( diff --git a/src/main/kotlin/dulkirmod/features/MatchoAlert.kt b/src/main/kotlin/dulkirmod/features/MatchoAlert.kt index f713372..c140036 100644 --- a/src/main/kotlin/dulkirmod/features/MatchoAlert.kt +++ b/src/main/kotlin/dulkirmod/features/MatchoAlert.kt @@ -5,7 +5,7 @@ import dulkirmod.config.Config import dulkirmod.utils.TabListUtils import dulkirmod.utils.Utils -class MatchoAlert() { +class MatchoAlert { var hasSentAlert = false @@ -26,16 +26,16 @@ class MatchoAlert() { DulkirMod.titleUtils.drawStringForTime("${color}Matcho", 5000) if (Config.bestiaryAlertSounds) DulkirMod.mc.thePlayer.playSound("mob.villager.yes", 1f * Config.bestiaryNotifVol, 0f) - hasSentAlert = true; + hasSentAlert = true } else if (s == " INACTIVE") hasSentAlert = false - break; + break } if (s == "Volcano Explosivity:") explo = true if (s != null) { if (s.contains("Area:") && !s.contains("Crimson Isle")) { hasSentAlert = false - break; + break } } } |