Skip to content

Commit

Permalink
fix: Fixed Wand Soulbinding Upgrade failing to restore items when ser…
Browse files Browse the repository at this point in the history
…ver is rebooting. Fixes #246
  • Loading branch information
WinDanesz committed Jun 7, 2024
1 parent d07ed57 commit 4744176
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public class ItemSoulboundWandUpgrade extends ItemWandUpgradeAS {

private static final IStoredVariable<NBTTagCompound> STORED_WANDS = IStoredVariable.StoredVariable.ofNBT("soulbound_wands", Persistence.ALWAYS);

public ItemSoulboundWandUpgrade() {
super();
WizardData.registerStoredVariables(STORED_WANDS);
}

/**
* Gets all the stored wands from WizardData and gives it back to the player, then purges these from WizardData
* @param player
Expand Down

0 comments on commit 4744176

Please sign in to comment.