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:
parent
f8c5d7c2b6
commit
872d721e77
|
@ -222,6 +222,10 @@ public class GameData
|
||||||
reg.freeze();
|
reg.freeze();
|
||||||
});
|
});
|
||||||
RegistryManager.ACTIVE.registries.forEach((name, reg) -> 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");
|
FMLLog.log.debug("All registries frozen");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue