Fire recipe registry event after json recipes are loaded.
This commit is contained in:
parent
0fde64ac38
commit
f8c5d7c2b6
2 changed files with 4 additions and 1 deletions
|
@ -613,6 +613,9 @@ public class CraftingHelper {
|
|||
Loader.instance().getActiveModList().forEach(CraftingHelper::loadFactories);
|
||||
Loader.instance().getActiveModList().forEach(CraftingHelper::loadRecipes);
|
||||
Loader.instance().setActiveModContainer(null);
|
||||
|
||||
GameData.fireRegistryEvents(rl -> rl.equals(GameData.RECIPES));
|
||||
|
||||
//reg.freeze();
|
||||
FMLCommonHandler.instance().resetClientRecipeBook();
|
||||
}
|
||||
|
|
|
@ -602,7 +602,7 @@ public class Loader
|
|||
ItemStackHolderInjector.INSTANCE.findHolders(discoverer.getASMTable());
|
||||
CapabilityManager.INSTANCE.injectCapabilities(discoverer.getASMTable());
|
||||
modController.distributeStateMessage(LoaderState.PREINITIALIZATION, discoverer.getASMTable(), canonicalConfigDir);
|
||||
GameData.fireRegistryEvents();
|
||||
GameData.fireRegistryEvents(rl -> !rl.equals(GameData.RECIPES));
|
||||
FMLCommonHandler.instance().fireSidedRegistryEvents();
|
||||
ObjectHolderRegistry.INSTANCE.applyObjectHolders();
|
||||
ItemStackHolderInjector.INSTANCE.inject();
|
||||
|
|
Loading…
Reference in a new issue