mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge pull request #199 from TrueFuFLeaderG/adventure
Adventure: fixed shopList attribute in towns
This commit is contained in:
@@ -372,6 +372,7 @@ public class MapStage extends GameStage {
|
|||||||
break;
|
break;
|
||||||
case "shop":
|
case "shop":
|
||||||
String shopList = prop.get("shopList").toString();
|
String shopList = prop.get("shopList").toString();
|
||||||
|
shopList=shopList.replaceAll("\\s","");
|
||||||
List possibleShops = Arrays.asList(shopList.split(","));
|
List possibleShops = Arrays.asList(shopList.split(","));
|
||||||
Array<ShopData> shops;
|
Array<ShopData> shops;
|
||||||
if (possibleShops.size() == 0 || shopList.equals(""))
|
if (possibleShops.size() == 0 || shopList.equals(""))
|
||||||
|
|||||||
Reference in New Issue
Block a user