1414import org .bukkit .block .Biome ;
1515import org .bukkit .entity .EntityType ;
1616
17- import com .google .common .base .Enums ;
18-
1917import world .bentobox .aoneblock .listeners .BlockListener ;
2018import world .bentobox .bentobox .BentoBox ;
2119import world .bentobox .bentobox .api .configuration .ConfigComment ;
@@ -232,13 +230,13 @@ public class Settings implements WorldSettings {
232230
233231 @ ConfigComment ("The default biome for the overworld" )
234232 @ ConfigEntry (path = "world.default-biome" )
235- private Biome defaultBiome = Biome . PLAINS ;
233+ private Biome defaultBiome ;
236234 @ ConfigComment ("The default biome for the nether world (this may affect what mobs can spawn)" )
237235 @ ConfigEntry (path = "world.default-nether-biome" )
238- private Biome defaultNetherBiome = Enums . getIfPresent ( Biome . class , "NETHER" ). or ( Enums . getIfPresent ( Biome . class , "NETHER_WASTES" ). or ( Biome . BADLANDS )) ;
236+ private Biome defaultNetherBiome ;
239237 @ ConfigComment ("The default biome for the end world (this may affect what mobs can spawn)" )
240238 @ ConfigEntry (path = "world.default-end-biome" )
241- private Biome defaultEndBiome = Biome . THE_END ;
239+ private Biome defaultEndBiome ;
242240
243241 @ ConfigComment ("The maximum number of players a player can ban at any one time in this game mode." )
244242 @ ConfigComment ("The permission acidisland.ban.maxlimit.X where X is a number can also be used per player" )
@@ -1446,7 +1444,7 @@ public boolean isWaterUnsafe() {
14461444 * @return default biome
14471445 */
14481446 public Biome getDefaultBiome () {
1449- return defaultBiome ;
1447+ return defaultBiome == null ? Biome . PLAINS : defaultBiome ;
14501448 }
14511449
14521450 /**
@@ -1891,7 +1889,7 @@ public void setDropOnTop(boolean dropOnTop) {
18911889 * @return the defaultNetherBiome
18921890 */
18931891 public Biome getDefaultNetherBiome () {
1894- return defaultNetherBiome ;
1892+ return defaultNetherBiome == null ? Biome . NETHER_WASTES : defaultNetherBiome ;
18951893 }
18961894
18971895 /**
@@ -1905,7 +1903,7 @@ public void setDefaultNetherBiome(Biome defaultNetherBiome) {
19051903 * @return the defaultEndBiome
19061904 */
19071905 public Biome getDefaultEndBiome () {
1908- return defaultEndBiome ;
1906+ return defaultEndBiome == null ? Biome . THE_END : defaultEndBiome ;
19091907 }
19101908
19111909 /**
0 commit comments