Skip to content

Commit

Permalink
moves the mixin for the recipe entrypoint to after the registry initi…
Browse files Browse the repository at this point in the history
…lization
  • Loading branch information
UselessBullets committed Dec 17, 2023
1 parent 122d15b commit abfebcd
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",shift = At.Shift.BEFORE))
public void recipeEntrypoint(CallbackInfo ci){
FabricLoader.getInstance().getEntrypoints("recipesReady", RecipeEntrypoint.class).forEach(RecipeEntrypoint::onRecipesReady);
}
Expand Down

0 comments on commit abfebcd

Please sign in to comment.