Skip to content

Commit

Permalink
Send remap event when data is frozen to notify modders to bake things.
Browse files Browse the repository at this point in the history
Fixes search not working when connecting to vanilla servers.
  • Loading branch information
LexManos committed Jul 13, 2017
1 parent f8c5d7c commit 872d721
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/minecraftforge/registries/GameData.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ public static void freezeData()
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");
}

Expand Down

0 comments on commit 872d721

Please sign in to comment.