mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-09 16:17:37 +02:00
Null check, for quick exit.
This commit is contained in:
@@ -194,7 +194,7 @@ public class EssentialsProtectEntityListener implements Listener
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onEntityExplode(final EntityExplodeEvent event)
|
||||
{
|
||||
if (event.isCancelled())
|
||||
if (event.isCancelled() || event.getEntity() == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user