From bb29d939b9b1d26265912b0cb8fc82a98f500463 Mon Sep 17 00:00:00 2001 From: Oxyopiia Date: Thu, 8 Feb 2024 22:48:47 +0000 Subject: [PATCH] Fix always rendering Cursor Item Cooldown & opacity errors --- .../vice/features/itemabilities/ItemAbilityCooldown.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/oxyopia/vice/features/itemabilities/ItemAbilityCooldown.kt b/src/main/java/net/oxyopia/vice/features/itemabilities/ItemAbilityCooldown.kt index 0133acb6..ebe400fd 100644 --- a/src/main/java/net/oxyopia/vice/features/itemabilities/ItemAbilityCooldown.kt +++ b/src/main/java/net/oxyopia/vice/features/itemabilities/ItemAbilityCooldown.kt @@ -150,7 +150,7 @@ object ItemAbilityCooldown { @SubscribeEvent fun onRenderInGameHud(event: HudRenderEvent) { - if (!Vice.config.ITEM_COOLDOWN_DISPLAY && !Vice.config.SHOW_ITEMCD_TEXT_CROSSHAIR) return + if (!Vice.config.ITEM_COOLDOWN_DISPLAY || !Vice.config.SHOW_ITEMCD_TEXT_CROSSHAIR) return val ability: ItemAbility? = ItemAbility.getByName(ItemUtils.getHeldItem().nameWithoutEnchants()) @@ -248,7 +248,7 @@ object ItemAbilityCooldown { val topLeft = event.y + MathHelper.floor(16.0f * (1.0f - progressLeft)) val bottomRight = topLeft + MathHelper.ceil(16.0f * progressLeft) - HudUtils.fillUIArea(matrices, RenderLayer.getGuiOverlay(), event.x, topLeft, event.x + 16, bottomRight, 0, Color.white.rgb) + HudUtils.fillUIArea(matrices, RenderLayer.getGuiOverlay(), event.x, topLeft, event.x + 16, bottomRight, 0, Int.MAX_VALUE) } DisplayType.STATIC -> {