Small tweak to prevent a possible annoyance.
This commit is contained in:
parent
34f779563e
commit
3e53489162
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue