diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/SpellDuplicatingRecipe.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/SpellDuplicatingRecipe.java index 16104530..f403eb80 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/SpellDuplicatingRecipe.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/SpellDuplicatingRecipe.java @@ -1,6 +1,7 @@ package com.minelittlepony.unicopia.ability.magic.spell.crafting; import com.google.gson.JsonObject; +import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; import com.minelittlepony.unicopia.container.SpellbookScreenHandler.SpellbookInventory; import com.minelittlepony.unicopia.item.*; import com.minelittlepony.unicopia.util.InventoryUtil; @@ -26,7 +27,13 @@ public class SpellDuplicatingRecipe implements SpellbookRecipe { @Override public void buildCraftingTree(CraftingTreeBuilder builder) { - + ItemStack[] spells = SpellType.REGISTRY.stream() + .filter(SpellType::isObtainable) + .map(type -> GemstoneItem.enchant(UItems.GEMSTONE.getDefaultStack(), type)) + .toArray(ItemStack[]::new); + builder.input(UItems.BOTCHED_GEM.getDefaultStack()); + builder.input(spells); + builder.result(spells); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/IngredientTree.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/IngredientTree.java index 0af857d5..90a6cb1b 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/IngredientTree.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/IngredientTree.java @@ -173,7 +173,7 @@ class IngredientTree implements SpellbookRecipe.CraftingTreeBuilder { public void render(MatrixStack matrices, int x, int y, float tickDelta) { y -= 2; - if (ticker++ % 500 == 0) { + if (ticker++ % 30 == 0) { index = (index + 1) % stacks.length; }