Skip to content

Commit

Permalink
Stop unholy error spam
Browse files Browse the repository at this point in the history
[INFO]  ERROR! Entity referenced is null! x9000 whenever debug is on.
That was horrible!
  • Loading branch information
mcmonkey4eva committed Aug 11, 2013
1 parent 833b33e commit beca029
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -600,7 +600,10 @@ else if (damager instanceof Player) {
context.put("damager", new dEntity(damager));

if (damager instanceof Projectile) {
context.put("shooter", new dEntity(((Projectile) damager).getShooter()));
if (((Projectile) damager).getShooter() != null)
context.put("shooter", new dEntity(((Projectile) damager).getShooter()));
else
context.put("shooter", Element.valueOf("null"));
}
}

Expand Down

0 comments on commit beca029

Please sign in to comment.