mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 06:40:55 +00:00
Moved registry unfreeze
This commit is contained in:
+2
-2
@@ -66,8 +66,6 @@ public class AwfulBukkitHacks {
|
|||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
Reflection.MAPPED_REGISTRY.setFrozen((MappedRegistry<?>) biomeRegistry, true); // freeze registry again :)
|
|
||||||
|
|
||||||
LOGGER.info("Doing tag garbage....");
|
LOGGER.info("Doing tag garbage....");
|
||||||
Map<TagKey<Biome>, List<Holder<Biome>>> collect = biomeRegistry
|
Map<TagKey<Biome>, List<Holder<Biome>>> collect = biomeRegistry
|
||||||
.getTags() // streamKeysAndEntries
|
.getTags() // streamKeysAndEntries
|
||||||
@@ -97,6 +95,8 @@ public class AwfulBukkitHacks {
|
|||||||
biomeRegistry.bindAllTagsToEmpty();
|
biomeRegistry.bindAllTagsToEmpty();
|
||||||
ImmutableMap.copyOf(collect).forEach(biomeRegistry::bindTag);
|
ImmutableMap.copyOf(collect).forEach(biomeRegistry::bindTag);
|
||||||
|
|
||||||
|
Reflection.MAPPED_REGISTRY.setFrozen(biomeRegistry, true); // freeze registry again :)
|
||||||
|
|
||||||
} catch(SecurityException | IllegalArgumentException exception) {
|
} catch(SecurityException | IllegalArgumentException exception) {
|
||||||
throw new RuntimeException(exception);
|
throw new RuntimeException(exception);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user