Scrolls no longer have cooldown in Creative mode

This commit is contained in:
WinDanesz
2021-12-25 18:16:32 +01:00
parent 3f06d2fea4
commit 7ca6f05151
@@ -195,7 +195,7 @@ public class ItemScroll extends Item implements ISpellCastingItem, IWorkbenchIte
if(!spell.isContinuous && !caster.isCreative()) stack.shrink(1);
// Now uses the vanilla cooldown mechanic to prevent spamming of spells
if(!spell.isContinuous) caster.getCooldownTracker().setCooldown(this, spell.getCooldown());
if(!spell.isContinuous && !caster.isCreative()) caster.getCooldownTracker().setCooldown(this, spell.getCooldown());
}
return true;