From 6c959a43bc82e70e6a1e819a4bf9899cc725573b Mon Sep 17 00:00:00 2001 From: iron431 <34083081+iron431@users.noreply.github.com> Date: Tue, 16 Jul 2024 20:01:33 -0500 Subject: [PATCH] fix scroll forge only allowing one result to be taken --- .../ironsspellbooks/gui/arcane_anvil/ArcaneAnvilMenu.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/redspace/ironsspellbooks/gui/arcane_anvil/ArcaneAnvilMenu.java b/src/main/java/io/redspace/ironsspellbooks/gui/arcane_anvil/ArcaneAnvilMenu.java index 827678f8d..badde95b4 100644 --- a/src/main/java/io/redspace/ironsspellbooks/gui/arcane_anvil/ArcaneAnvilMenu.java +++ b/src/main/java/io/redspace/ironsspellbooks/gui/arcane_anvil/ArcaneAnvilMenu.java @@ -44,6 +44,7 @@ protected void onTake(Player p_150601_, ItemStack p_150602_) { level.playSound(null, pos, SoundEvents.ANVIL_USE, SoundSource.BLOCKS, .8f, 1.1f); level.playSound(null, pos, SoundEvents.AMETHYST_BLOCK_BREAK, SoundSource.BLOCKS, 1f, 1f); }); + createResult(); } @Override @@ -70,7 +71,8 @@ public void createResult() { var baseRarity = spell1.getRarity(); var nextRarity = spell1.getSpell().getRarity(spell1.getLevel() + 1); if (nextRarity.equals(inkItem.getRarity())) { - result = new ItemStack(ItemRegistry.SCROLL.get()); + result = baseItemStack.copy(); + result.setCount(1); ISpellContainer.createScrollContainer(spell1.getSpell(), spell1.getLevel() + 1, result); } }