mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-20 14:16:26 -04:00
fix: tidy-up even more
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ import com.cobblemon.mod.common.client.CobblemonClient
|
||||
import squeek.appleskin.api.AppleSkinApi
|
||||
import squeek.appleskin.api.event.HUDOverlayEvent
|
||||
|
||||
object AppleSkinClientEventHandler: AppleSkinApi {
|
||||
class AppleSkinClientEventHandler: AppleSkinApi {
|
||||
override fun registerEvents() {
|
||||
HUDOverlayEvent.Exhaustion.EVENT.register(::checkIsScanning)
|
||||
HUDOverlayEvent.Saturation.EVENT.register(::checkIsScanning)
|
||||
|
||||
+1
-3
@@ -237,10 +237,8 @@ object CobblemonNeoForgeClient : CobblemonClientImplementation {
|
||||
}
|
||||
}
|
||||
|
||||
fun isModInstalled(id: String): Boolean = ModList.get().isLoaded(id)
|
||||
|
||||
private fun attemptClientModCompat() {
|
||||
if (this.isModInstalled("appleskin")) {
|
||||
if (Cobblemon.implementation.isModInstalled("appleskin")) {
|
||||
AppleSkinClientEventHandler.register()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user