From 842b339a258a5550a1099b8ee7bb09fddc8ede5c Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Sun, 11 Mar 2018 10:19:11 -0700 Subject: [PATCH] Add a null check to avoid what looks like a battlesign related crash --- src/main/java/tconstruct/tools/TinkerToolEvents.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/tconstruct/tools/TinkerToolEvents.java b/src/main/java/tconstruct/tools/TinkerToolEvents.java index 8e2ceb1f..0990e735 100644 --- a/src/main/java/tconstruct/tools/TinkerToolEvents.java +++ b/src/main/java/tconstruct/tools/TinkerToolEvents.java @@ -242,6 +242,8 @@ public class TinkerToolEvents if (source.isProjectile()) { Entity projectile = source.getSourceOfDamage(); + if(projectile == null) + return; Vec3 motion = Vec3.createVectorHelper(projectile.motionX, projectile.motionY, projectile.motionZ); Vec3 look = player.getLookVec();