Skip to content

Commit

Permalink
Fix Tinkers ActiveToolMod ignoring other mods already calculated dama…
Browse files Browse the repository at this point in the history
…ge (although it should always be calculated first) #1398
  • Loading branch information
bonii-xx committed Feb 14, 2015
1 parent 8199401 commit 3473d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/tools/TActiveOmniMod.java
Expand Up @@ -251,7 +251,7 @@ private void slimify(ToolCore tool, NBTTagCompound tags, Block block, int x, int
@Override
public int attackDamage (int modDamage, int currentDamage, ToolCore tool, NBTTagCompound tags, NBTTagCompound toolTags, ItemStack stack, EntityLivingBase player, Entity entity)
{
int bonus = 0;
int bonus = modDamage;
if (entity instanceof EntityLivingBase)
{
EnumCreatureAttribute attribute = ((EntityLivingBase) entity).getCreatureAttribute();
Expand Down Expand Up @@ -285,7 +285,7 @@ public int attackDamage (int modDamage, int currentDamage, ToolCore tool, NBTTag
@Override
public float knockback (float modKnockback, float currentKnockback, ToolCore tool, NBTTagCompound tags, NBTTagCompound toolTags, ItemStack stack, EntityLivingBase player, Entity entity)
{
float bonus = 0f;
float bonus = modKnockback;
if (toolTags.hasKey("Knockback"))
{
float level = toolTags.getFloat("Knockback");
Expand Down

0 comments on commit 3473d7a

Please sign in to comment.