Null check for entity explosions without an entity.

This commit is contained in:
Wizjany 2012-12-29 11:42:09 -05:00
parent cc78011da6
commit 85b2cbc03a

View File

@ -469,7 +469,9 @@ public void onEntityExplode(EntityExplodeEvent event) {
Entity ent = event.getEntity();
if (cfg.activityHaltToggle) {
ent.remove();
if (ent != null) {
ent.remove();
}
event.setCancelled(true);
return;
}