Merge pull request #14 from GTNewHorizons/null_guard

Add a null check to avoid what looks like a battlesign related crash
This commit is contained in:
Martin Robertz authored and GitHub committed 2018-03-11 18:47:21 +01:00
commit c99f85eba1
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();