mirror of
https://github.com/amalthea-mc/Ore-Market.git
synced 2024-11-22 10:22:29 +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);
|
playerInventory.removeItem(clickedItem);
|
||||||
}
|
}
|
||||||
addMoney(value, player);
|
addMoney(value, player);
|
||||||
valueChange(slot, value, true);
|
valueChange(slot, value, false);
|
||||||
stockChange(slot, stock, 1, true);
|
stockChange(slot, stock, 1, true);
|
||||||
|
|
||||||
String message = OreMarket.main().getGuiConfig().getString("gui.messages.successfully-sold", "&aYou have successfully sold the item!");
|
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);
|
playerInventory.addItem(clickedItem);
|
||||||
}
|
}
|
||||||
takeMoney(value, player);
|
takeMoney(value, player);
|
||||||
valueChange(slot, value, false);
|
valueChange(slot, value, true);
|
||||||
stockChange(slot, stock, 1, false);
|
stockChange(slot, stock, 1, false);
|
||||||
String message = OreMarket.main().getGuiConfig().getString("gui.messages.successfully-bought", "&aYou have successfully bought the item!");
|
String message = OreMarket.main().getGuiConfig().getString("gui.messages.successfully-bought", "&aYou have successfully bought the item!");
|
||||||
player.sendMessage(ChatColor.translateAlternateColorCodes('&', message));
|
player.sendMessage(ChatColor.translateAlternateColorCodes('&', message));
|
||||||
|
Loading…
Reference in New Issue
Block a user