diff --git a/src/main/java/org/bitbiome/commands/ShopCommand.java b/src/main/java/org/bitbiome/commands/ShopCommand.java index 1231a48..357822b 100644 --- a/src/main/java/org/bitbiome/commands/ShopCommand.java +++ b/src/main/java/org/bitbiome/commands/ShopCommand.java @@ -11,7 +11,7 @@ public class ShopCommand implements CommandAPI{ public void performCommand(Scanner scanner, boolean isRunning, String message) { System.out.println("Willkommen im Shop!"); System.out.println("Folgende Items sind aktuell im Shop:"); - shop.getCurrentShopItems(); + shop.printCurrentShopItems(); System.out.println("Was willst Du hier im Shop?"); System.out.println("Etwas kaufen: 1"); System.out.println("Das Quiz spielen: 2"); diff --git a/src/main/java/org/bitbiome/shop/Shop.java b/src/main/java/org/bitbiome/shop/Shop.java index 21aea67..eeb8759 100644 --- a/src/main/java/org/bitbiome/shop/Shop.java +++ b/src/main/java/org/bitbiome/shop/Shop.java @@ -58,8 +58,8 @@ public class Shop { return arrayList; } - public void getCurrentShopItems(){ - printArrayList(allItems); + public void printCurrentShopItems(){ + printArrayList(currentShopItems); } public void quiz(){