Skip to content

Commit

Permalink
Merge pull request #5484 from ZZZank/fix-create-sawables
Browse files Browse the repository at this point in the history
fix create sawables
  • Loading branch information
NielsPilgaard authored Feb 18, 2025
2 parents 126869c + 7614817 commit 2f11c46
Showing 1 changed file with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ onEvent('recipes', (event) => {
});

function create_cutting(event, variant, sawDust, treeBark) {
data = {
let data = {
recipes: [
{
input: variant.logBlock,
Expand Down Expand Up @@ -46,27 +46,11 @@ function create_cutting(event, variant, sawDust, treeBark) {
]
};

const { cutting } = event.recipes.create

data.recipes.forEach((recipe) => {
fallback_id(
event.recipes.create.cutting({
type: 'create:cutting',
ingredients: [
{
item: recipe.input
}
],
results: [
{
item: recipe.output,
count: recipe.count
},
{
item: recipe.secondaryOutput,
count: 1
}
],
processingTime: recipe.time
}),
cutting([Item.of(recipe.output, recipe.count), recipe.secondaryOutput], recipe.input).processingTime(recipe.time),
`enigmatica:base/unification/unify_sawables/${arguments.callee.name}/`
);
});
Expand Down

0 comments on commit 2f11c46

Please sign in to comment.