mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Only add existing booster templates to the template map to avoid situations where the game would try to generate a non-existing booster pack and crash (e.g. unlocking a Starter 2000 set in quest mode).
- Only show the "You receive the following bonus cards" window if there are bonus cards available from the booster template.
This commit is contained in:
@@ -217,8 +217,11 @@ public class QuestUtilUnlockSets {
|
||||
cardsWon.addAll(booster.get());
|
||||
}
|
||||
|
||||
qData.getCards().addAllCards(cardsWon);
|
||||
GuiBase.getInterface().showCardList(unlockedSet.getName(), "You get the following bonus cards:", cardsWon);
|
||||
if (!cardsWon.isEmpty()) {
|
||||
qData.getCards().addAllCards(cardsWon);
|
||||
GuiBase.getInterface().showCardList(unlockedSet.getName(), "You get the following bonus cards:", cardsWon);
|
||||
}
|
||||
|
||||
qData.save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user