mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 08:54:12 +00:00
Fix the battlesign crashing
when blocking a DamageSource with no entity
This commit is contained in:
1 parent
3b1ca5d6d4
commit
b8ab91532d
1 file changed
+4
-1
@@ -339,7 +339,10 @@ public class TEventHandler
|
||||
else
|
||||
{
|
||||
Entity attacker = source.getEntity();
|
||||
attacker.attackEntityFrom(DamageSource.causeThornsDamage(player), event.ammount);
|
||||
if(attacker != null)
|
||||
{
|
||||
attacker.attackEntityFrom(DamageSource.causeThornsDamage(player), event.ammount);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user