Merge pull request #749 from WinDanesz/patch-1225-4
Scrolls no longer have cooldown in Creative mode
This commit is contained in:
@@ -209,7 +209,7 @@ public class ItemScroll extends Item implements ISpellCastingItem, IWorkbenchIte
|
|||||||
if(!spell.isContinuous && !caster.isCreative()) stack.shrink(1);
|
if(!spell.isContinuous && !caster.isCreative()) stack.shrink(1);
|
||||||
|
|
||||||
// Now uses the vanilla cooldown mechanic to prevent spamming of spells
|
// 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;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user