mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
Prevent crash when hitting ghast-fireballs etc. with tinker projectiles
This commit is contained in:
1 parent
7372d0af89
commit
2396c9c21c
1 file changed
+1
-1
@@ -206,7 +206,7 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
|
||||
// stonebound decreases, jagged increases damage too
|
||||
float bonusDamage = -AbilityHelper.calcStoneboundBonus(ammo, tags);
|
||||
// enchantments might add too
|
||||
if(shootingEntity != null)
|
||||
if(shootingEntity != null && movingobjectposition.entityHit instanceof EntityLivingBase)
|
||||
bonusDamage += EnchantmentHelper.getEnchantmentModifierLiving((EntityLivingBase)this.shootingEntity, (EntityLivingBase)movingobjectposition.entityHit);
|
||||
damage += bonusDamage;
|
||||
|
||||
|
||||
Reference in new issue
Block a user