Skip to content

Commit

Permalink
Fix a null check in damage-calculations #1355
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Jan 21, 2015
1 parent 119e888 commit 9d89ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/library/tools/AbilityHelper.java
Expand Up @@ -241,7 +241,7 @@ public static int calcDamage(Entity user, Entity entity, ItemStack stack, ToolCo
if (damage < 1)
damage = 1;

if (user.isSprinting())
if (living != null && living.isSprinting())
{
float lunge = tool.chargeAttack();
if (lunge > 1f)
Expand Down

0 comments on commit 9d89ecd

Please sign in to comment.