diff --git a/src/generated/resources/data/qstorage/recipe/basic_storage_disk.json b/src/generated/resources/data/qstorage/recipe/basic_storage_disk.json index 8a02d40..dba6076 100644 --- a/src/generated/resources/data/qstorage/recipe/basic_storage_disk.json +++ b/src/generated/resources/data/qstorage/recipe/basic_storage_disk.json @@ -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, diff --git a/src/main/java/dev/wolfieboy09/qstorage/datagen/QSRecipeProvider.java b/src/main/java/dev/wolfieboy09/qstorage/datagen/QSRecipeProvider.java index 406d822..7a13445 100644 --- a/src/main/java/dev/wolfieboy09/qstorage/datagen/QSRecipeProvider.java +++ b/src/main/java/dev/wolfieboy09/qstorage/datagen/QSRecipeProvider.java @@ -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; @@ -21,7 +22,11 @@ public QSRecipeProvider(PackOutput output, CompletableFuture listedIngredients(ItemLike @NotNull ... ingredients) { - return List.of(Ingredient.of(ingredients)); + List list = new ArrayList<>(List.of()); + for (ItemLike item : ingredients) { + list.add(Ingredient.of(item)); + } + return list; } @Override