mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Send remap event when data is frozen to notify modders to bake things.
Fixes search not working when connecting to vanilla servers.
This commit is contained in:
1 parent
f8c5d7c2b6
commit
872d721e77
1 file changed
+4
@@ -222,6 +222,10 @@ public class GameData
|
||||
reg.freeze();
|
||||
});
|
||||
RegistryManager.ACTIVE.registries.forEach((name, reg) -> reg.freeze());
|
||||
|
||||
// the id mapping is fanilized, no ids actually changed but this is a good place to tell everyone to 'bake' their stuff.
|
||||
Loader.instance().fireRemapEvent(ImmutableMap.of(), true);
|
||||
|
||||
FMLLog.log.debug("All registries frozen");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user