Skip to content

Commit

Permalink
Fix another NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 16, 2013
1 parent ec74295 commit be0931b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1378,7 +1378,7 @@ public void entityDamage(EntityDamageEvent event) {

boolean isFatal = false;

if (entity.isValid()) {
if (entity.isValid() && entity.isLivingEntity()) {
if (event.getDamage() >= entity.getLivingEntity().getHealth()) {
isFatal = true;
}
Expand Down

0 comments on commit be0931b

Please sign in to comment.