diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignBuy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignBuy.java b/Essentials/src/com/earth2me/essentials/signs/SignBuy.java index 089faeb31..f0200cace 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignBuy.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignBuy.java @@ -33,7 +33,7 @@ public class SignBuy extends EssentialsSign item.setAmount(amount); final Charge charge = getCharge(sign, 3, ess); 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()) { InventoryWorkaround.dropItem(player.getLocation(), itemStack); |