Fix wands not resetting their progression when upgraded

This commit is contained in:
Electroblob77
2019-09-05 00:28:42 +01:00
parent 038fd7225f
commit 693c11ada0
@@ -642,6 +642,8 @@ public class ItemWand extends Item implements IWorkbenchItem, ISpellCastingItem,
// WandHelper.setProgression(centre.getStack(), WandHelper.getProgression(centre.getStack()) - tier.progression);
// }
WandHelper.setProgression(centre.getStack(), 0);
ItemStack newWand = new ItemStack(WizardryItems.getWand(tier, this.element));
newWand.setTagCompound(centre.getStack().getTagCompound());
// This needs to be done after copying the tag compound so the mana capacity for the new wand