From e171cbd0e247ca36e799724db28337ec11b59569 Mon Sep 17 00:00:00 2001 From: 7sat <49030779+7sat@users.noreply.github.com> Date: Fri, 1 Apr 2022 19:52:29 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A8=B8=EC=A7=80=20=EB=88=84=EB=9D=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/me/sat7/dynamicshop/DynaShopAPI.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/sat7/dynamicshop/DynaShopAPI.java b/src/main/java/me/sat7/dynamicshop/DynaShopAPI.java index 40e7df0..814d52f 100644 --- a/src/main/java/me/sat7/dynamicshop/DynaShopAPI.java +++ b/src/main/java/me/sat7/dynamicshop/DynaShopAPI.java @@ -214,7 +214,7 @@ public static ArrayList getShopItems(@NonNull String shopName) if (validateShopName(shopName)) { CustomConfig data = ShopUtil.shopConfigFiles.get(shopName); - + ArrayList list = new ArrayList<>(); for (String s : data.get().getKeys(false)) { @@ -289,8 +289,7 @@ public static double getSellPrice(@NonNull String shopName, @NonNull ItemStack i int idx = ShopUtil.findItemFromShop(shopName, itemStack); if (idx != -1) { - double price = Calc.getCurrentPrice(shopName, String.valueOf(idx), false); - return price - ((price / 100) * getTaxRate(shopName)); + return Calc.getCurrentPrice(shopName, String.valueOf(idx), false); } else { return idx;