mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Fix an issue with default tool-callback-modifiers resetting other modifiers damage (e.g. useless smite/bane)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user