Skip to content

Commit

Permalink
Moved registry unfreeze
Browse files Browse the repository at this point in the history
  • Loading branch information
OakLoaf committed Nov 1, 2024
1 parent 3cd6aea commit a385a43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<TagKey<Biome>, List<Holder<Biome>>> collect = biomeRegistry
.getTags() // streamKeysAndEntries
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit a385a43

Please sign in to comment.