mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-10 17:58:03 +01:00
Fix possible NPE with falling blocks
This commit is contained in:
parent
a1634ed94a
commit
209b1e8c73
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user