From 5e21422a8e8cb164a46f5eede9a6f28f84a35675 Mon Sep 17 00:00:00 2001 From: alexia Date: Thu, 4 Jan 2024 11:13:17 +0100 Subject: Only show jungle axe/treecap overlay if not on cooldown (#981) --- .../moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java index 65b80497..11a8393b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java @@ -807,7 +807,8 @@ public class CustomItemEffects { if (heldInternal.equals("BLOCK_ZAPPER")) { onRenderBlockBlockZapper(event, onPrivateIsland, d0, d1, d2); } else if (NotEnoughUpdates.INSTANCE.config.itemOverlays.enableTreecapOverlay && - (heldInternal.equals("JUNGLE_AXE") || heldInternal.equals("TREECAPITATOR_AXE"))) { + (heldInternal.equals("JUNGLE_AXE") || heldInternal.equals("TREECAPITATOR_AXE")) && + ItemCooldowns.getDurabilityOverride(held) < 0) { onRenderBlockTreecap(event, heldInternal, d0, d1, d2); } else if (NotEnoughUpdates.INSTANCE.config.itemOverlays.enableWandOverlay) { onRenderBlockWandOverlay( -- cgit