diff --git a/src/main/java/org/bitbiome/commands/ShopCommand.java b/src/main/java/org/bitbiome/commands/ShopCommand.java index 357822b..2114751 100644 --- a/src/main/java/org/bitbiome/commands/ShopCommand.java +++ b/src/main/java/org/bitbiome/commands/ShopCommand.java @@ -19,7 +19,6 @@ public class ShopCommand implements CommandAPI{ while (true){ String input = scanner.nextLine(); - if(validInput(input)){ if(input.equals("1")){ //shop.buy(); diff --git a/src/main/java/org/bitbiome/shop/Shop.java b/src/main/java/org/bitbiome/shop/Shop.java index eeb8759..ba1f00b 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 Shop(){ allItems = loadItems(); - currentShopItems = itemRotation(allItems, 2); + currentShopItems = loadPartofItems(allItems, 2); } public boolean buy(){ @@ -44,7 +44,7 @@ public class Shop { return arrayList; } - public ArrayList itemRotation(ArrayList alleItems, int itemCount){ + public ArrayList loadPartofItems(ArrayList alleItems, int itemCount){ ArrayList arrayList = new ArrayList(); HashSet hashSet = new HashSet<>(); Random random = new Random();