Don't call canCast() from WizardryUtilities#isCasting(), fixes #196
This commit is contained in:
@@ -870,9 +870,10 @@ public final class WizardryUtilities {
|
|||||||
|
|
||||||
ItemStack stack = caster.getHeldItem(caster.getActiveHand());
|
ItemStack stack = caster.getHeldItem(caster.getActiveHand());
|
||||||
|
|
||||||
if(stack.getItem() instanceof ISpellCastingItem && ((ISpellCastingItem)stack.getItem()).getCurrentSpell(stack) == spell
|
if(stack.getItem() instanceof ISpellCastingItem && ((ISpellCastingItem)stack.getItem()).getCurrentSpell(stack) == spell){
|
||||||
&& ((ISpellCastingItem)stack.getItem()).canCast(stack, spell, (EntityPlayer)caster,
|
// Don't do this, it interferes with stuff! We effectively already tested this with caster.isHandActive() anyway
|
||||||
EnumHand.MAIN_HAND, 0, new SpellModifiers())){
|
// && ((ISpellCastingItem)stack.getItem()).canCast(stack, spell, (EntityPlayer)caster,
|
||||||
|
// EnumHand.MAIN_HAND, 0, new SpellModifiers())){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user