Combat ignores events where entity is dead now.

This commit is contained in:
nossr50
2012-02-22 18:43:09 -08:00
parent a3f0de1c84
commit e4d312a11f
2 changed files with 2 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ public class Combat
{
public static void combatChecks(EntityDamageEvent event, mcMMO pluginx)
{
if(event.isCancelled() || event.getDamage() == 0)
if(event.isCancelled() || event.getDamage() == 0 || event.getEntity().isDead())
return;
if(event instanceof EntityDamageByEntityEvent)