Fixed npe

This commit is contained in:
Brianna O'Keefe 2019-02-14 11:53:10 -05:00
parent 7542bb7edc
commit 2ac16a169c

View File

@ -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"));