mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-10 10:14:03 +00:00
Use the new Workaround in buy signs.
This commit is contained in:
parent
631c7f30b6
commit
adc7502115
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public class SignBuy extends EssentialsSign
|
||||||
item.setAmount(amount);
|
item.setAmount(amount);
|
||||||
final Charge charge = getCharge(sign, 3, ess);
|
final Charge charge = getCharge(sign, 3, ess);
|
||||||
charge.isAffordableFor(player);
|
charge.isAffordableFor(player);
|
||||||
final Map<Integer, ItemStack> leftOver = player.getInventory().addItem(item);
|
final Map<Integer, ItemStack> leftOver = InventoryWorkaround.addItem(player.getInventory(), true, item);
|
||||||
for (ItemStack itemStack : leftOver.values())
|
for (ItemStack itemStack : leftOver.values())
|
||||||
{
|
{
|
||||||
InventoryWorkaround.dropItem(player.getLocation(), itemStack);
|
InventoryWorkaround.dropItem(player.getLocation(), itemStack);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue