mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Fix a null check in damage-calculations #1355
This commit is contained in:
1 parent
119e888dc2
commit
9d89ecd4b7
1 file changed
+1
-1
@@ -241,7 +241,7 @@ public class AbilityHelper
|
||||
if (damage < 1)
|
||||
damage = 1;
|
||||
|
||||
if (user.isSprinting())
|
||||
if (living != null && living.isSprinting())
|
||||
{
|
||||
float lunge = tool.chargeAttack();
|
||||
if (lunge > 1f)
|
||||
|
||||
Reference in new issue
Block a user