Add a null check to avoid what looks like a battlesign related crash

This commit is contained in:
Jason Mitchell committed 2018-03-11 10:19:11 -07:00
1 parent b9ec3be359
commit 842b339a25
1 file changed
+2
@@ -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();