Skip to content

Commit

Permalink
Okay, NOW the bug is fixed (datagen!!!)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfieboy09 committed Nov 7, 2024
1 parent cfc7dbe commit 7375636
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,23 @@
"type": "qstorage:disk_assembly",
"energy": 2000,
"extras": [
[
{
"item": "qstorage:data_crystal"
},
{
"item": "qstorage:basic_circuit"
}
]
{
"item": "qstorage:data_crystal"
},
{
"item": "qstorage:basic_circuit"
}
],
"ingredients": [
[
{
"item": "qstorage:item_port"
},
{
"item": "qstorage:steel_casing"
},
{
"item": "qstorage:steel_screw"
}
]
{
"item": "qstorage:item_port"
},
{
"item": "qstorage:steel_casing"
},
{
"item": "qstorage:steel_screw"
}
],
"result": {
"count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Unmodifiable;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;

Expand All @@ -21,7 +22,11 @@ public QSRecipeProvider(PackOutput output, CompletableFuture<HolderLookup.Provid
}

private static @NotNull @Unmodifiable List<Ingredient> listedIngredients(ItemLike @NotNull ... ingredients) {
return List.of(Ingredient.of(ingredients));
List<Ingredient> list = new ArrayList<>(List.of());
for (ItemLike item : ingredients) {
list.add(Ingredient.of(item));
}
return list;
}

@Override
Expand Down

0 comments on commit 7375636

Please sign in to comment.