mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 02:35:25 +01:00
Fixed npe
This commit is contained in:
parent
7542bb7edc
commit
2ac16a169c
@ -244,6 +244,8 @@ public class Block implements Listener {
|
||||
WorldManager worldManager = skyblock.getWorldManager();
|
||||
|
||||
Island island = islandManager.getIslandAtLocation(event.getBlock().getLocation());
|
||||
if (island == null) return;
|
||||
|
||||
IslandWorld world = worldManager.getIslandWorld(event.getBlock().getWorld());
|
||||
|
||||
Config config = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml"));
|
||||
|
Loading…
Reference in New Issue
Block a user