Skip to content

Commit

Permalink
detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Dec 21, 2024
1 parent 62f0ad7 commit 3fd19a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/at/hannibal2/skyhanni/data/BossbarData.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package at.hannibal2.skyhanni.data

//#if MC < 1.12
import at.hannibal2.skyhanni.events.BossbarUpdateEvent
import at.hannibal2.skyhanni.events.LorenzTickEvent
import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
//#if MC < 1.12
import at.hannibal2.skyhanni.events.LorenzTickEvent
import net.minecraft.entity.boss.BossStatus
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

//#else
//$$ import net.minecraftforge.client.event.RenderGameOverlayEvent
//#endif
Expand All @@ -25,8 +26,8 @@ object BossbarData {
bossbar = null
}

@SubscribeEvent
//#if MC < 1.12
@SubscribeEvent
fun onTick(event: LorenzTickEvent) {
val bossbarLine = BossStatus.bossName ?: return
//#else
Expand Down

0 comments on commit 3fd19a1

Please sign in to comment.