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;