From 7888b92129f803c8ab005f797965a7e1a2de4a7e Mon Sep 17 00:00:00 2001 From: ZettaSword <38763491+ZettaSword@users.noreply.github.com> Date: Thu, 4 Aug 2022 23:17:31 +0300 Subject: [PATCH] feat: Wand cooldown only decrements if the player holds the wand --- src/main/java/electroblob/wizardry/item/ItemWand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/electroblob/wizardry/item/ItemWand.java b/src/main/java/electroblob/wizardry/item/ItemWand.java index 343be7eb..64ab91ef 100644 --- a/src/main/java/electroblob/wizardry/item/ItemWand.java +++ b/src/main/java/electroblob/wizardry/item/ItemWand.java @@ -227,8 +227,8 @@ public class ItemWand extends Item implements IWorkbenchItem, ISpellCastingItem, @Override public void onUpdate(ItemStack stack, World world, Entity entity, int slot, boolean isHeld){ - - WandHelper.decrementCooldowns(stack); + + if(isHeld) WandHelper.decrementCooldowns(stack); // Decrements wand damage (increases mana) every 1.5 seconds if it has a condenser upgrade if(!world.isRemote && !this.isManaFull(stack) && world.getTotalWorldTime() % Constants.CONDENSER_TICK_INTERVAL == 0){