mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 15:17:36 +01:00
Null check for entity explosions without an entity.
This commit is contained in:
parent
cc78011da6
commit
85b2cbc03a
@ -469,7 +469,9 @@ public void onEntityExplode(EntityExplodeEvent event) {
|
|||||||
Entity ent = event.getEntity();
|
Entity ent = event.getEntity();
|
||||||
|
|
||||||
if (cfg.activityHaltToggle) {
|
if (cfg.activityHaltToggle) {
|
||||||
|
if (ent != null) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
|
}
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user