fix: tidy-up even more

This commit is contained in:
Gitoido Okaski
2026-10-15 17:57:42 +03:00
parent 82d56637a0
commit d8bdd6329a
2 changed files with 2 additions and 4 deletions
@@ -12,7 +12,7 @@ import com.cobblemon.mod.common.client.CobblemonClient
import squeek.appleskin.api.AppleSkinApi import squeek.appleskin.api.AppleSkinApi
import squeek.appleskin.api.event.HUDOverlayEvent import squeek.appleskin.api.event.HUDOverlayEvent
object AppleSkinClientEventHandler: AppleSkinApi { class AppleSkinClientEventHandler: AppleSkinApi {
override fun registerEvents() { override fun registerEvents() {
HUDOverlayEvent.Exhaustion.EVENT.register(::checkIsScanning) HUDOverlayEvent.Exhaustion.EVENT.register(::checkIsScanning)
HUDOverlayEvent.Saturation.EVENT.register(::checkIsScanning) HUDOverlayEvent.Saturation.EVENT.register(::checkIsScanning)
@@ -237,10 +237,8 @@ object CobblemonNeoForgeClient : CobblemonClientImplementation {
} }
} }
fun isModInstalled(id: String): Boolean = ModList.get().isLoaded(id)
private fun attemptClientModCompat() { private fun attemptClientModCompat() {
if (this.isModInstalled("appleskin")) { if (Cobblemon.implementation.isModInstalled("appleskin")) {
AppleSkinClientEventHandler.register() AppleSkinClientEventHandler.register()
} }
} }