mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Fix Tinkers ActiveToolMod ignoring other mods already calculated damage (although it should always be calculated first) #1398
This commit is contained in:
1 parent
8199401be9
commit
3473d7a469
1 file changed
+2
-2
@@ -251,7 +251,7 @@ public class TActiveOmniMod extends ActiveToolMod
|
||||
@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();
|
||||
@@ -285,7 +285,7 @@ public class TActiveOmniMod extends ActiveToolMod
|
||||
@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");
|
||||
|
||||
Reference in new issue
Block a user