diff --git a/src/main/java/org/bitbiome/shop/Shop.java b/src/main/java/org/bitbiome/shop/Shop.java index fceff83..4721512 100644 --- a/src/main/java/org/bitbiome/shop/Shop.java +++ b/src/main/java/org/bitbiome/shop/Shop.java @@ -16,7 +16,7 @@ public class Shop { public ArrayList currentShopItems; public Shop(){ - allItems = loadItems(); + allItems = loadCurrentShopItems(); currentShopItems = loadPartofItems(allItems, 2); } @@ -79,7 +79,7 @@ public class Shop { FileWriter fileWriter = new FileWriter("src/main/resources/gameconfig.json"); fileWriter.write(gameConfig.toString()); fileWriter.close(); - currentShopItems = loadItems(); + currentShopItems = loadCurrentShopItems(); } } @@ -128,7 +128,7 @@ public class Shop { return true; } - private ArrayList loadItems(){ + private ArrayList loadCurrentShopItems(){ File file = new File("src/main/resources/gameconfig.json"); ArrayList arrayList = new ArrayList(); try {