From 5136f095bc80f1e321d3d323124b72cd8e6838b4 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Sun, 15 Jan 2023 19:05:10 +0100 Subject: [PATCH] refactoring: loadItems() to loadCurrentShopItems() --- src/main/java/org/bitbiome/shop/Shop.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {