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:
LexManos 2017-07-13 14:45:51 -07:00
parent f8c5d7c2b6
commit 872d721e77
1 changed files with 4 additions and 0 deletions

View File

@ -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");
}