diff options
author | Appability <appable@icloud.com> | 2022-10-17 16:11:40 -0700 |
---|---|---|
committer | Appability <appable@icloud.com> | 2022-10-17 16:11:40 -0700 |
commit | fcd49c8b59f9c76008b5112a2e296c164b168842 (patch) | |
tree | ba3be0850cfe2185a68e6ba9fd862e5c59fd57dc /src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt | |
parent | d4245bb705c7d8965e6bf63c90614dcfef38dcf7 (diff) | |
download | AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.tar.gz AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.tar.bz2 AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.zip |
trapper esp
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt b/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt index fa210aa..85801aa 100644 --- a/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt +++ b/src/main/kotlin/com/ambientaddons/features/display/WitherShieldOverlay.kt @@ -4,7 +4,7 @@ import AmbientAddons.Companion.config import AmbientAddons.Companion.mc import com.ambientaddons.utils.Alignment import com.ambientaddons.utils.render.OverlayUtils -import com.ambientaddons.utils.SkyBlock +import com.ambientaddons.utils.SBLocation import com.ambientaddons.utils.dungeon.TextStyle import net.minecraft.client.gui.ScaledResolution import net.minecraftforge.client.event.ClientChatReceivedEvent @@ -19,7 +19,7 @@ object WitherShieldOverlay { @SubscribeEvent fun onRenderOverlay(event: RenderGameOverlayEvent) { if (event.type != RenderGameOverlayEvent.ElementType.TEXT) return - if (!SkyBlock.inSkyblock || config.witherShieldDisplay == 0) return + if (!SBLocation.inSkyblock || config.witherShieldDisplay == 0) return val diff = ((witherImpactEndTime - System.currentTimeMillis()) / 1000.0).takeIf { it >= 0 } ?: return val display = ceil(diff).roundToInt().toString() val resolution = ScaledResolution(mc) @@ -31,7 +31,7 @@ object WitherShieldOverlay { @SubscribeEvent fun onChat(event: ClientChatReceivedEvent) { - if (!SkyBlock.inSkyblock || config.witherShieldDisplay == 0) return + if (!SBLocation.inSkyblock || config.witherShieldDisplay == 0) return if (event.type == 2.toByte() && event.message.unformattedText.contains("Wither Impact")) { if (((witherImpactEndTime - System.currentTimeMillis()) / 1000.0) < 0) { witherImpactEndTime = System.currentTimeMillis() + 5000 |