From 93d210054685f479bf35d41e86aacd331a73f26d Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Mon, 21 Sep 2020 14:02:49 +0100 Subject: [PATCH] Every day I'm shufflin' --- .../integration/jei/ImbuementAltarRecipeCategory.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/integration/jei/ImbuementAltarRecipeCategory.java b/src/main/java/electroblob/wizardry/integration/jei/ImbuementAltarRecipeCategory.java index 0144ab84..d9953e24 100644 --- a/src/main/java/electroblob/wizardry/integration/jei/ImbuementAltarRecipeCategory.java +++ b/src/main/java/electroblob/wizardry/integration/jei/ImbuementAltarRecipeCategory.java @@ -119,7 +119,13 @@ public class ImbuementAltarRecipeCategory implements IRecipeCategory variants = NonNullList.create(); WizardryItems.spectral_dust.getSubItems(WizardryItems.spectral_dust.getCreativeTab(), variants); - List> dusts = Collections.nCopies(4, variants); + + List> dusts = new ArrayList<>(); + // Generate 4 separate lists, each in a different order to make it obvious they can be any element + for(int i = 0; i < 4; i++){ + Collections.shuffle(variants); + dusts.add(new ArrayList<>(variants)); + } recipes.add(new ImbuementAltarRecipe(new ItemStack(WizardryItems.ruined_spell_book), dusts, new ItemStack(WizardryItems.spell_book, 1, OreDictionary.WILDCARD_VALUE)));