From b9a543fb1b6c46cc93f8c518bdde6b90c116d962 Mon Sep 17 00:00:00 2001 From: SirYwell Date: Wed, 6 Nov 2024 08:13:10 +0100 Subject: [PATCH] Fix Biome ABI break --- .../com/plotsquared/bukkit/generator/BukkitPlotGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java index bfccaeb3d0..f713ed3506 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java @@ -52,7 +52,7 @@ import java.util.ArrayList; import java.util.Arrays; -import java.util.EnumSet; +import java.util.HashSet; import java.util.List; import java.util.Random; import java.util.Set; @@ -445,7 +445,7 @@ private final class BukkitPlotBiomeProvider extends BiomeProvider { private static final List BIOMES; static { - Set disabledBiomes = EnumSet.of(Biome.CUSTOM); + Set disabledBiomes = new HashSet<>(List.of(Biome.CUSTOM)); if (PlotSquared.platform().serverVersion()[1] <= 19) { final Biome cherryGrove = Registry.BIOME.get(NamespacedKey.minecraft("cherry_grove")); if (cherryGrove != null) {