Fix the battlesign crashing

when blocking a DamageSource with no entity
This commit is contained in:
Drew committed 2014-05-27 22:57:30 -04:00
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);
}
}
}
}