Add 1.15.2 backward compatibility.

Update to 1.14 api.
This commit is contained in:
BONNe 2020-07-09 21:40:23 +03:00
parent 93ee3cdd33
commit cf8e29b562
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@
<java.version>1.8</java.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.16.1-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.14.0-SNAPSHOT</bentobox.version>
<bentobox.version>1.14.0</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->

View File

@ -1,6 +1,7 @@
package world.bentobox.caveblock;
import com.google.common.base.Enums;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
@ -2055,7 +2056,7 @@ public class Settings implements WorldSettings
@ConfigComment("The default biome for the nether world (this may affect what mobs can spawn)")
@ConfigEntry(path = "world.nether.biome", since = "1.14.0")
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("Nether spawn protection radius - this is the distance around the nether spawn")
@ConfigComment("that will be protected from player interaction (breaking blocks, pouring lava etc.)")

View File

@ -194,7 +194,6 @@ world:
remove-mobs-whitelist:
- WITHER
- ENDERMAN
- ZOMBIFIED_PIGLIN
- ZOMBIE_VILLAGER
# World flags. These are boolean settings for various flags for this world
flags: