Persistent Dynamic Registry Handler
public class PersistentDynamicRegistryHandler
Content copied to clipboard
This solves a bug in vanilla where datapack added biome IDs are not saved to disk. Thus adding or changing a biome from a datapack/mod causes the ids to shift. This remaps the IDs in the DynamicRegistryManager in a similar manner to the normal registry sync.
See: https://bugs.mojang.com/browse/MC-202036
This may cause issues when vanilla adds biomes in the future, this should be fixable by also remapping the static ID map vanilla keeps.
Functions
remapDynamicRegistries
Link copied to clipboard
static void remapDynamicRegistries(DynamicRegistryManager.Impl dynamicRegistryManager, Path saveDir)
Content copied to clipboard
Sources
jvm source
Link copied to clipboard