diff options
author | snowleo <schneeleo@gmail.com> | 2011-06-12 22:58:37 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-12 22:58:37 +0200 |
commit | adc75021158bf00651f5941c2915b95be09c55b0 (patch) | |
tree | 6868b6008c3127fc50d9bffe105065bd99e74796 | |
parent | 631c7f30b628ce1d1e32deb723e4c241d13e806d (diff) | |
download | Essentials-adc75021158bf00651f5941c2915b95be09c55b0.tar Essentials-adc75021158bf00651f5941c2915b95be09c55b0.tar.gz Essentials-adc75021158bf00651f5941c2915b95be09c55b0.tar.lz Essentials-adc75021158bf00651f5941c2915b95be09c55b0.tar.xz Essentials-adc75021158bf00651f5941c2915b95be09c55b0.zip |
Use the new Workaround in buy signs.
-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); |