always load recipes later to improve mod compat

This commit is contained in:
glisco03 2021-08-15 21:34:22 +02:00
parent 1f239baeb9
commit 23b372252b
2 changed files with 33 additions and 40 deletions

View file

@ -29,11 +29,6 @@ public abstract class RecipeManagerMixin {
@Shadow
private Map<RecipeType<?>, Map<ResourceLocation, Recipe<?>>> recipes;
@Inject(method = "apply", at = @At(value = "RETURN"))
private void be_apply(Map<ResourceLocation, JsonElement> map, ResourceManager resourceManager, ProfilerFiller profiler, CallbackInfo info) {
recipes = BCLRecipeManager.getMap(recipes);
}
@Shadow
private <C extends Container, T extends Recipe<C>> Map<ResourceLocation, Recipe<C>> byType(RecipeType<T> type) {
return null;