diff --git a/src/main/java/com/bgsoftware/superiorskyblock/island/SIsland.java b/src/main/java/com/bgsoftware/superiorskyblock/island/SIsland.java index 5fcf7ed85..35463e44c 100644 --- a/src/main/java/com/bgsoftware/superiorskyblock/island/SIsland.java +++ b/src/main/java/com/bgsoftware/superiorskyblock/island/SIsland.java @@ -1461,6 +1461,11 @@ public void setPaypal(String paypal) { @Override public Biome getBiome() { + if(biome == null) { + // Loads the chunk and gets the biome on the first block. + // This may be called if a placeholder is called before the island is loaded, for example. + biome = getCenter(plugin.getSettings().getWorlds().getDefaultWorld()).getBlock().getBiome(); + } return biome; } @@ -1469,6 +1474,7 @@ public void setBiome(Biome biome) { setBiome(biome, true); } + @Override public void setBiome(Biome biome, boolean updateBlocks) { Preconditions.checkNotNull(biome, "biome parameter cannot be null.");