diff --git a/build.gradle.kts b/build.gradle.kts index 599e85c19..01fe4de0a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,12 +25,12 @@ dependencies { implementation("org.jetbrains:annotations:26.0.1") implementation("com.j256.ormlite:ormlite-core:6.1") implementation("com.j256.ormlite:ormlite-jdbc:6.1") - implementation("com.iridium:IridiumTeams:2.5.8") + implementation("com.iridium:IridiumTeams:2.5.9.5") implementation("commons-lang:commons-lang:2.6") // Other dependencies that are not required or already available at runtime compileOnly("org.projectlombok:lombok:1.18.36") - compileOnly("org.spigotmc:spigot-api:1.21.1-R0.1-SNAPSHOT") + compileOnly("org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT") compileOnly("com.github.MilkBowl:VaultAPI:1.7.1") compileOnly("net.ess3:EssentialsXSpawn:2.16.1") compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.2.13-SNAPSHOT") diff --git a/src/main/java/com/iridium/iridiumskyblock/managers/BiomeManager.java b/src/main/java/com/iridium/iridiumskyblock/managers/BiomeManager.java index 8f08aed27..f8bb85c4e 100644 --- a/src/main/java/com/iridium/iridiumskyblock/managers/BiomeManager.java +++ b/src/main/java/com/iridium/iridiumskyblock/managers/BiomeManager.java @@ -20,7 +20,7 @@ public void buy(Player player, Biomes.BiomeItem biomeItem) { XBiome biome = biomeItem.biome; User user = IridiumSkyblock.getInstance().getUserManager().getUser(player); Optional island = user.getIsland(); - Optional biomeOptional = XBiome.matchXBiome(biomeItem.biome.toString()); + Optional biomeOptional = XBiome.of(biomeItem.biome.toString()); if (!canPurchase(player, biomeItem)) { IridiumSkyblock.getInstance().getBiomes().failSound.play(player); diff --git a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java index adb065d74..d7bfeeb91 100644 --- a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java +++ b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java @@ -85,7 +85,7 @@ public void createWorld(World.Environment environment, String name) { } public void setIslandBiome(@NotNull Island island, @NotNull XBiome biome) { - World.Environment dimension = biome.getEnvironment(); + World.Environment dimension = biome.getEnvironment().get(); World world = getWorld(dimension); if (world == null) return; @@ -253,9 +253,9 @@ public CompletableFuture generateIsland(Island island, Schematics.Schemati deleteIslandBlocks(island).join(); clearEntities(island); IridiumSkyblock.getInstance().getSchematicManager().pasteSchematic(island, schematicConfig).join(); - setIslandBiome(island, XBiome.matchXBiome(schematicConfig.overworld.biome)); - setIslandBiome(island, XBiome.matchXBiome(schematicConfig.nether.biome)); - setIslandBiome(island, XBiome.matchXBiome(schematicConfig.end.biome)); + setIslandBiome(island, XBiome.of(schematicConfig.overworld.biome)); + setIslandBiome(island, XBiome.of(schematicConfig.nether.biome)); + setIslandBiome(island, XBiome.of(schematicConfig.end.biome)); }); }