Merge pull request #199 from TrueFuFLeaderG/adventure

Adventure: fixed shopList attribute in towns
This commit is contained in:
Anthony Calosa
2022-05-02 06:30:40 +08:00
committed by GitHub

View File

@@ -372,6 +372,7 @@ public class MapStage extends GameStage {
break;
case "shop":
String shopList = prop.get("shopList").toString();
shopList=shopList.replaceAll("\\s","");
List possibleShops = Arrays.asList(shopList.split(","));
Array<ShopData> shops;
if (possibleShops.size() == 0 || shopList.equals(""))