From fb56190f6f143d6921dc62eac187be60a0d9e21e Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Thu, 11 Jun 2020 22:23:15 +0100 Subject: [PATCH] Allow the cooldown bar to render properly for continuous spells --- .../java/electroblob/wizardry/client/gui/GuiSpellDisplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/client/gui/GuiSpellDisplay.java b/src/main/java/electroblob/wizardry/client/gui/GuiSpellDisplay.java index 93e25d45..230989cb 100644 --- a/src/main/java/electroblob/wizardry/client/gui/GuiSpellDisplay.java +++ b/src/main/java/electroblob/wizardry/client/gui/GuiSpellDisplay.java @@ -260,7 +260,7 @@ public class GuiSpellDisplay { float progress = 1; // Doesn't really matter what progress is when in creative, but we might as well avoid the calculation. - if(!player.isCreative() && !spell.isContinuous){ + if(!player.isCreative()){ // Subtracted partial tick time to make it smoother progress = maxCooldown == 0 ? 1 : (maxCooldown - (float)cooldown + partialTicks) / maxCooldown; }