diff --git a/build.gradle b/build.gradle index 264b8af..e6ff99c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'org.infotoast' -version = '5.0' +version = '5.1' repositories { mavenCentral() @@ -24,8 +24,8 @@ repositories { } dependencies { - compileOnly 'io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT' - implementation 'de.tr7zw:item-nbt-api:2.13.2' + compileOnly 'io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT' + implementation 'de.tr7zw:item-nbt-api:2.14.0' } def targetJavaVersion = 21 @@ -56,7 +56,7 @@ processResources { tasks { runServer { - minecraftVersion("1.21.1") + minecraftVersion("1.21.3") } } diff --git a/src/main/java/org/infotoast/lorax/Populator.java b/src/main/java/org/infotoast/lorax/Populator.java index a71da37..b289cad 100644 --- a/src/main/java/org/infotoast/lorax/Populator.java +++ b/src/main/java/org/infotoast/lorax/Populator.java @@ -59,25 +59,25 @@ private void spawnTree(WorldImproved world, Vector3 v3, int treeType) { private void doBiome(WorldImproved world, Random random, int x, int z, LimitedRegion chunk) { List biomesToTransform = world.getBiome(chunk, x, z, okMats); for (int i = 0; i < biomesToTransform.size(); i++) { - switch (biomesToTransform.get(i)) { - case BIRCH_FOREST: - case OLD_GROWTH_BIRCH_FOREST: + switch (biomesToTransform.get(i).translationKey()) { + case "biome.minecraft.birch_forest": + case "biome.minecraft.old_growth_birch_forest": doBirch(world, random, x, z, chunk); break; - case FOREST: - case FLOWER_FOREST: + case "biome.minecraft.forest": + case "biome.minecraft.flower_forest": doOak(world, random, x, z, chunk); break; - case TAIGA: - case GROVE: - case SNOWY_TAIGA: + case "biome.minecraft.taiga": + case "biome.minecraft.grove": + case "biome.minecraft.snowy_taiga": doSpruce(world, random, x, z, chunk); break; - case SAVANNA: - case SAVANNA_PLATEAU: + case "biome.minecraft.savanna": + case "biome.minecraft.savanna_plateau": doAcacia(world, random, x, z, chunk); break; - case DARK_FOREST: + case "biome.minecraft.dark_forest": doDarkOak(world, random, x, z, chunk); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index c82fcc8..6aa7d02 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: Lorax version: '${version}' main: org.infotoast.lorax.Lorax -api-version: 1.20 +api-version: 1.21 prefix: Lorax load: STARTUP authors: [ Frank, CoolScreenName ]