diff --git a/platforms/bukkit/nms/v1_21_3/src/main/java/com/dfsek/terra/bukkit/nms/v1_21_3/AwfulBukkitHacks.java b/platforms/bukkit/nms/v1_21_3/src/main/java/com/dfsek/terra/bukkit/nms/v1_21_3/AwfulBukkitHacks.java index b8e256675..813d1768b 100644 --- a/platforms/bukkit/nms/v1_21_3/src/main/java/com/dfsek/terra/bukkit/nms/v1_21_3/AwfulBukkitHacks.java +++ b/platforms/bukkit/nms/v1_21_3/src/main/java/com/dfsek/terra/bukkit/nms/v1_21_3/AwfulBukkitHacks.java @@ -66,8 +66,6 @@ public static void registerBiomes(ConfigRegistry configRegistry) { } })); - Reflection.MAPPED_REGISTRY.setFrozen((MappedRegistry) biomeRegistry, true); // freeze registry again :) - LOGGER.info("Doing tag garbage...."); Map, List>> collect = biomeRegistry .getTags() // streamKeysAndEntries @@ -97,6 +95,8 @@ public static void registerBiomes(ConfigRegistry configRegistry) { biomeRegistry.bindAllTagsToEmpty(); ImmutableMap.copyOf(collect).forEach(biomeRegistry::bindTag); + Reflection.MAPPED_REGISTRY.setFrozen(biomeRegistry, true); // freeze registry again :) + } catch(SecurityException | IllegalArgumentException exception) { throw new RuntimeException(exception); }