Merge pull request #749 from WinDanesz/patch-1225-4

Scrolls no longer have cooldown in Creative mode
This commit is contained in:
Electroblob
2022-02-01 18:30:47 +00:00
committed by GitHub
@@ -209,7 +209,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;