From 20ba24d5c95f85192f97a18570a859213bdc86dc Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Thu, 19 Jan 2023 23:48:54 +0100 Subject: [PATCH] refactoring: itemRotation() --- src/main/java/org/bitbiome/shop/Shop.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bitbiome/shop/Shop.java b/src/main/java/org/bitbiome/shop/Shop.java index aa15493..dc00dca 100644 --- a/src/main/java/org/bitbiome/shop/Shop.java +++ b/src/main/java/org/bitbiome/shop/Shop.java @@ -208,8 +208,12 @@ public class Shop { return arrayList; } - public void itemRotation() throws IOException { - currentShopItems = loadPartofItems(allItems, 3); + public void itemRotation() { + try { + currentShopItems = loadPartofItems(allItems, 3); + }catch (Exception e){ + e.printStackTrace(); + } } public void printCurrentShopItems(){