aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authoralexia <me@alexia.lol>2024-01-04 11:13:17 +0100
committerGitHub <noreply@github.com>2024-01-04 11:13:17 +0100
commit5e21422a8e8cb164a46f5eede9a6f28f84a35675 (patch)
tree7a00c6167151ea0b90aaf7302c6dcf8e414e9ab8 /src/main/java
parentd6dd4cfa9e5e1d3f5f8b0142365404671b9647a9 (diff)
downloadNotEnoughUpdates-5e21422a8e8cb164a46f5eede9a6f28f84a35675.tar.gz
NotEnoughUpdates-5e21422a8e8cb164a46f5eede9a6f28f84a35675.tar.bz2
NotEnoughUpdates-5e21422a8e8cb164a46f5eede9a6f28f84a35675.zip
Only show jungle axe/treecap overlay if not on cooldown (#981)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java3
1 files changed, 2 insertions, 1 deletions
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(