mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-15 19:31:58 +01:00
Fixed ShopGUI+ price mismatch.
This commit is contained in:
parent
9a41eec47b
commit
a54feda680
@ -56,7 +56,9 @@ public class ModuleAutoSell implements Module {
|
||||
double value;
|
||||
if (Setting.AUTOSELL_SHOPGUIPLUS.getBoolean() && player.isOnline()) {
|
||||
try {
|
||||
value = net.brcdev.shopgui.ShopGuiPlusApi.getItemStackPriceSell(player.getPlayer(), itemStack);
|
||||
ItemStack clone = itemStack.clone();
|
||||
clone.setAmount(1);
|
||||
value = net.brcdev.shopgui.ShopGuiPlusApi.getItemStackPriceSell(player.getPlayer(), clone);
|
||||
} catch (Exception e){
|
||||
value = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user