mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Revert the last 2 commits and actually fix the right one.
This commit is contained in:
parent
ce9e630072
commit
af10a2050a
3 changed files with 4 additions and 4 deletions
|
@ -157,7 +157,7 @@ public class Commandsell extends EssentialsCommand
|
|||
// This should never happen.
|
||||
throw new IllegalStateException("Trying to remove more items than are available.");
|
||||
}
|
||||
user.getInventory().removeItem(ris.clone());
|
||||
user.getInventory().removeItem(ris);
|
||||
user.updateInventory();
|
||||
Trade.log("Command", "Sell", "Item", user.getName(), new Trade(ris, ess), user.getName(), new Trade(worth * amount, ess), user.getLocation(), ess);
|
||||
user.giveMoney(worth * amount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue