mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Fixed NPE on buying the last item in the stall.
This commit is contained in:
@@ -21,7 +21,7 @@ public class QuestAlchemistStall extends QuestAbstractBazaarStall {
|
||||
protected List<QuestAbstractBazaarItem> populateItems() {
|
||||
if (questData.getLife()>30)
|
||||
{
|
||||
return null;
|
||||
return new ArrayList<QuestAbstractBazaarItem>();
|
||||
}
|
||||
|
||||
List<QuestAbstractBazaarItem> itemList = new ArrayList<QuestAbstractBazaarItem>();
|
||||
|
||||
@@ -35,7 +35,7 @@ public class QuestGearStall extends QuestAbstractBazaarStall{
|
||||
if(questData.getGearLevel() == 1){
|
||||
itemList.add(new QuestAbstractBazaarItem("Zeppelin",
|
||||
"This extremely comfortable airship allows for more efficient and safe travel<br>to faraway destinations. <br>"+
|
||||
"<u>Quest assignments become available more frequently, adds +3 to max life</u>.",
|
||||
"<u>Quest assignments become available more frequently<br>Adds +3 to max life during quest games</u>.",
|
||||
5000,
|
||||
GuiUtils.getIconFromFile("ZeppelinIcon.png")) {
|
||||
@Override
|
||||
|
||||
@@ -16,7 +16,7 @@ public class QuestNurseryStall extends QuestAbstractBazaarStall{
|
||||
@Override
|
||||
protected List<QuestAbstractBazaarItem> populateItems() {
|
||||
if (questData.getPlantLevel()>=6){
|
||||
return null;
|
||||
return new ArrayList<QuestAbstractBazaarItem>();
|
||||
}
|
||||
|
||||
List<QuestAbstractBazaarItem> itemList = new ArrayList<QuestAbstractBazaarItem>();
|
||||
|
||||
Reference in New Issue
Block a user