From 7cdbe4dcbb8ae7e31dc9b881f347cd54662c845a Mon Sep 17 00:00:00 2001 From: Appability Date: Sun, 13 Nov 2022 23:39:33 -0800 Subject: render on top of wither shield actually --- .../kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt') diff --git a/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt b/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt index 85801aa..ee3b683 100644 --- a/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt +++ b/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt @@ -3,6 +3,7 @@ package com.ambientaddons.features.display import AmbientAddons.Companion.config import AmbientAddons.Companion.mc import com.ambientaddons.utils.Alignment +import com.ambientaddons.utils.Area import com.ambientaddons.utils.render.OverlayUtils import com.ambientaddons.utils.SBLocation import com.ambientaddons.utils.dungeon.TextStyle @@ -20,6 +21,7 @@ object WitherShieldOverlay { fun onRenderOverlay(event: RenderGameOverlayEvent) { if (event.type != RenderGameOverlayEvent.ElementType.TEXT) return if (!SBLocation.inSkyblock || config.witherShieldDisplay == 0) return + if (config.trapperCooldown != 0 && SBLocation.area == Area.FarmingIslands) return val diff = ((witherImpactEndTime - System.currentTimeMillis()) / 1000.0).takeIf { it >= 0 } ?: return val display = ceil(diff).roundToInt().toString() val resolution = ScaledResolution(mc) -- cgit