Fix an issue with default tool-callback-modifiers resetting other modifiers damage (e.g. useless smite/bane)

This commit is contained in:
Bernhard Bonigl committed 2014-12-29 19:42:19 +01:00
1 parent 2f4ea07f98
commit c46e6e0bc2
1 file changed
+3 -3
@@ -36,18 +36,18 @@ public class ActiveToolMod
public int baseAttackDamage (int earlyModDamage, int damage, ToolCore tool, NBTTagCompound tags, NBTTagCompound toolTags, ItemStack stack, EntityLivingBase player, Entity entity)
{
return 0;
return earlyModDamage;
}
// Calculated after sprinting and enchant bonuses
public float knockback (float modKnockback, float currentKnockback, ToolCore tool, NBTTagCompound tags, NBTTagCompound toolTags, ItemStack stack, EntityLivingBase player, Entity entity)
{
return 0f;
return modKnockback;
}
public int attackDamage (int modDamage, int currentDamage, ToolCore tool, NBTTagCompound tags, NBTTagCompound toolTags, ItemStack stack, EntityLivingBase player, Entity entity)
{
return 0;
return modDamage;
}
public void lateAttackEntity () // Unfinished, not called