mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 15:17:36 +01:00
Fixed NullPointerException in explode hook.
This commit is contained in:
parent
31633e9466
commit
6f3eaac008
@ -186,7 +186,7 @@ public void onEntityExplode(EntityExplodeEvent event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin.useRegions) {
|
if (plugin.useRegions && event.getEntity() != null) {
|
||||||
Vector pt = toVector(event.getEntity().getLocation());
|
Vector pt = toVector(event.getEntity().getLocation());
|
||||||
|
|
||||||
if (!plugin.regionManager.getApplicableRegions(pt).allowsTNT()) {
|
if (!plugin.regionManager.getApplicableRegions(pt).allowsTNT()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user