diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/signs/SignTrade.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignTrade.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java index c2f3eb8e4..28635796a 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java @@ -76,7 +76,9 @@ public class SignTrade extends EssentialsSign amount -= amount % trade.getItemStack().getAmount(); if (amount > 0) { - final Trade store = new Trade(new ItemStack(player.getItemInHand().getTypeId(), amount, player.getItemInHand().getDurability()), ess); + final ItemStack stack = new ItemStack(player.getItemInHand().getTypeId(), amount, player.getItemInHand().getDurability()); + stack.addEnchantments(player.getItemInHand().getEnchantments()); + final Trade store = new Trade(stack, ess); addAmount(sign, 2, store, ess); store.charge(player); return store; |