mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Add a null check to avoid what looks like a battlesign related crash
This commit is contained in:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user