Fix possible NPE with falling blocks

This commit is contained in:
Esophose 2019-02-23 18:39:33 -07:00
parent a1634ed94a
commit 209b1e8c73

View File

@ -345,7 +345,7 @@ public class Entity implements Listener {
Island island = islandManager.getIslandAtLocation(event.getBlock().getLocation());
if (!skyblock.getWorldManager().isIslandWorld(entity.getWorld())) return;
if (island == null || !skyblock.getWorldManager().isIslandWorld(entity.getWorld())) return;
if (event.isCancelled()) return;