mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2024-09-26 03:53:45 +02:00
Enable backwards compatibility with 1.15.2
This commit is contained in:
parent
27edda539c
commit
6833fb011a
@ -12,6 +12,8 @@ import org.bukkit.GameMode;
|
|||||||
import org.bukkit.block.Biome;
|
import org.bukkit.block.Biome;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
|
|
||||||
|
import com.google.common.base.Enums;
|
||||||
|
|
||||||
import world.bentobox.bentobox.api.configuration.ConfigComment;
|
import world.bentobox.bentobox.api.configuration.ConfigComment;
|
||||||
import world.bentobox.bentobox.api.configuration.ConfigEntry;
|
import world.bentobox.bentobox.api.configuration.ConfigEntry;
|
||||||
import world.bentobox.bentobox.api.configuration.StoreAt;
|
import world.bentobox.bentobox.api.configuration.StoreAt;
|
||||||
@ -148,7 +150,7 @@ public class Settings implements WorldSettings {
|
|||||||
private Biome defaultBiome = Biome.PLAINS;
|
private Biome defaultBiome = Biome.PLAINS;
|
||||||
@ConfigComment("The default biome for the nether world (this may affect what mobs can spawn)")
|
@ConfigComment("The default biome for the nether world (this may affect what mobs can spawn)")
|
||||||
@ConfigEntry(path = "world.default-nether-biome")
|
@ConfigEntry(path = "world.default-nether-biome")
|
||||||
private Biome defaultNetherBiome = Biome.NETHER_WASTES;
|
private Biome defaultNetherBiome = Enums.getIfPresent(Biome.class, "NETHER").or(Enums.getIfPresent(Biome.class, "NETHER_WASTES").or(Biome.BADLANDS));
|
||||||
@ConfigComment("The default biome for the end world (this may affect what mobs can spawn)")
|
@ConfigComment("The default biome for the end world (this may affect what mobs can spawn)")
|
||||||
@ConfigEntry(path = "world.default-end-biome")
|
@ConfigEntry(path = "world.default-end-biome")
|
||||||
private Biome defaultEndBiome = Biome.THE_END;
|
private Biome defaultEndBiome = Biome.THE_END;
|
||||||
|
Binary file not shown.
@ -90,8 +90,6 @@ world:
|
|||||||
default-game-mode: SURVIVAL
|
default-game-mode: SURVIVAL
|
||||||
# The default biome for the overworld
|
# The default biome for the overworld
|
||||||
default-biome: PLAINS
|
default-biome: PLAINS
|
||||||
# The default biome for the nether world (this may affect what mobs can spawn)
|
|
||||||
default-nether-biome: NETHER_WASTES
|
|
||||||
# The default biome for the end world (this may affect what mobs can spawn)
|
# The default biome for the end world (this may affect what mobs can spawn)
|
||||||
default-end-biome: THE_END
|
default-end-biome: THE_END
|
||||||
# The maximum number of players a player can ban at any one time in this game mode.
|
# The maximum number of players a player can ban at any one time in this game mode.
|
||||||
@ -127,7 +125,6 @@ world:
|
|||||||
remove-mobs-whitelist:
|
remove-mobs-whitelist:
|
||||||
- ZOMBIE_VILLAGER
|
- ZOMBIE_VILLAGER
|
||||||
- ENDERMAN
|
- ENDERMAN
|
||||||
- ZOMBIFIED_PIGLIN
|
|
||||||
- WITHER
|
- WITHER
|
||||||
# World flags. These are boolean settings for various flags for this world
|
# World flags. These are boolean settings for various flags for this world
|
||||||
flags:
|
flags:
|
||||||
|
Loading…
Reference in New Issue
Block a user