Allow building sequenced assembly recipe directly

- Resolves #1991
This commit is contained in:
PepperBell 2021-07-17 20:53:39 -07:00
parent 4bdd802170
commit 9923f04ff5

View file

@ -82,8 +82,12 @@ public class SequencedAssemblyRecipeBuilder {
return this; return this;
} }
public SequencedAssemblyRecipe build() {
return recipe;
}
public void build(Consumer<IFinishedRecipe> consumer) { public void build(Consumer<IFinishedRecipe> consumer) {
consumer.accept(new DataGenResult(recipe, recipeConditions)); consumer.accept(new DataGenResult(build(), recipeConditions));
} }
public static class DataGenResult implements IFinishedRecipe { public static class DataGenResult implements IFinishedRecipe {