mirror of
https://github.com/amalthea-mc/Ore-Market.git
synced 2024-11-09 12:11:08 +00:00
Fix value change direction when buying/selling
This commit is contained in:
parent
841779c52b
commit
8507257e01
@ -123,7 +123,7 @@ public class InventoryEvents implements Listener {
|
||||
playerInventory.removeItem(clickedItem);
|
||||
}
|
||||
addMoney(value, player);
|
||||
valueChange(slot, value, true);
|
||||
valueChange(slot, value, false);
|
||||
stockChange(slot, stock, 1, true);
|
||||
|
||||
String message = OreMarket.main().getGuiConfig().getString("gui.messages.successfully-sold", "&aYou have successfully sold the item!");
|
||||
@ -151,7 +151,7 @@ public class InventoryEvents implements Listener {
|
||||
playerInventory.addItem(clickedItem);
|
||||
}
|
||||
takeMoney(value, player);
|
||||
valueChange(slot, value, false);
|
||||
valueChange(slot, value, true);
|
||||
stockChange(slot, stock, 1, false);
|
||||
String message = OreMarket.main().getGuiConfig().getString("gui.messages.successfully-bought", "&aYou have successfully bought the item!");
|
||||
player.sendMessage(ChatColor.translateAlternateColorCodes('&', message));
|
||||
|
Loading…
Reference in New Issue
Block a user