Fix inability to upgrade non-elemental wands using tomes of arcana
This commit is contained in:
@@ -970,6 +970,7 @@ public final class WizardryUtilities {
|
|||||||
*/
|
*/
|
||||||
public static Item getWand(Tier tier, Element element){
|
public static Item getWand(Tier tier, Element element){
|
||||||
if(tier == null) throw new NullPointerException("The given tier cannot be null.");
|
if(tier == null) throw new NullPointerException("The given tier cannot be null.");
|
||||||
|
if(element == null) element = Element.MAGIC;
|
||||||
return WizardryItems.WAND_MAP.get(ImmutablePair.of(tier, element));
|
return WizardryItems.WAND_MAP.get(ImmutablePair.of(tier, element));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user