From c7b47c84e4ed57cd1f2d5418204a87cabe75a762 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Wed, 11 Jan 2023 10:09:21 +0100 Subject: [PATCH] refactoring: printCurrentShopItems() --- src/main/java/org/bitbiome/commands/ShopCommand.java | 2 +- src/main/java/org/bitbiome/shop/Shop.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(){