Fix npe in entity explode

This commit is contained in:
Fabrizio La Rosa 2020-07-28 22:20:22 +02:00
parent 4121ecc769
commit c6791b104e

View File

@ -364,7 +364,7 @@ public class Entity implements Listener {
Island island = islandManager.getIslandAtLocation(entity.getLocation());
plugin.getPermissionManager().processPermission(event, null, island);
if (!event.isCancelled()) {
if (!event.isCancelled() && island != null) {
StackableManager stackableManager = plugin.getStackableManager();