Skip to content

Commit

Permalink
Merge pull request #40 from UselessBullets/Quick-Features
Browse files Browse the repository at this point in the history
moves the mixin inject for the recipe entry point to after the vanilla recipes are loaded
  • Loading branch information
UselessBullets authored Dec 17, 2023
2 parents 122d15b + f458997 commit 7f005df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

public class MinecraftMixin {

@Inject(method = "startGame", at = @At(value = "NEW",target = "()Lnet/minecraft/core/data/registry/Registries;",shift = At.Shift.AFTER))
@Inject(method = "startGame", at = @At(value = "INVOKE",target = "Lnet/minecraft/core/data/DataLoader;loadRecipes(Ljava/lang/String;)V", ordinal = 3, shift = At.Shift.AFTER))
public void recipeEntrypoint(CallbackInfo ci){
FabricLoader.getInstance().getEntrypoints("recipesReady", RecipeEntrypoint.class).forEach(RecipeEntrypoint::onRecipesReady);
}
Expand Down

0 comments on commit 7f005df

Please sign in to comment.