v2.2.0: fixed crash errors on new blacksmith quests on existing saves

This commit is contained in:
Evan Debenham
2023-09-10 18:45:20 -04:00
parent 8dcff879e5
commit ead5fc0e88

View File

@@ -118,7 +118,7 @@ public class Blacksmith extends NPC {
Quest.given = true;
Quest.completed = false;
Notes.add( Notes.Landmark.TROLL );
Item pick = Quest.pickaxe;
Item pick = Quest.pickaxe != null ? Quest.pickaxe : new Pickaxe();
if (pick.doPickUp( Dungeon.hero )) {
GLog.i( Messages.capitalize(Messages.get(Dungeon.hero, "you_now_have", pick.name()) ));
} else {