Fixed NullPointerException in explode hook.

This commit is contained in:
sk89q 2011-01-21 00:51:50 -08:00
parent 31633e9466
commit 6f3eaac008

View File

@ -186,7 +186,7 @@ public void onEntityExplode(EntityExplodeEvent event) {
return;
}
if (plugin.useRegions) {
if (plugin.useRegions && event.getEntity() != null) {
Vector pt = toVector(event.getEntity().getLocation());
if (!plugin.regionManager.getApplicableRegions(pt).allowsTNT()) {