Small tweak to prevent a possible annoyance.

This commit is contained in:
WayofTime 2015-04-21 16:32:42 -04:00
parent 34f779563e
commit 3e53489162

View file

@ -57,8 +57,6 @@ public class ItemSpellMultiTool extends Item
float f = (float)par3EntityLivingBase.getEntityAttribute(SharedMonsterAttributes.attackDamage).getAttributeValue(); float f = (float)par3EntityLivingBase.getEntityAttribute(SharedMonsterAttributes.attackDamage).getAttributeValue();
damage *= f;
SpellParadigmTool parad = this.loadParadigmFromStack(par1ItemStack); SpellParadigmTool parad = this.loadParadigmFromStack(par1ItemStack);
if (parad != null) if (parad != null)
@ -73,6 +71,8 @@ public class ItemSpellMultiTool extends Item
damage *= 1.75f; damage *= 1.75f;
} }
damage *= f;
if (par3EntityLivingBase instanceof EntityPlayer) if (par3EntityLivingBase instanceof EntityPlayer)
{ {
par2EntityLivingBase.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) par3EntityLivingBase), damage); par2EntityLivingBase.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) par3EntityLivingBase), damage);