From a385a432509ae38e383ccf6bff8cff85db47f107 Mon Sep 17 00:00:00 2001 From: OakLoaf Date: Fri, 1 Nov 2024 12:02:49 +0000 Subject: [PATCH] Moved registry unfreeze --- .../com/dfsek/terra/bukkit/nms/v1_21_3/AwfulBukkitHacks.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b8e2566753..813d1768b9 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); }