mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 17:52:28 +01:00
Clone item enchantments unchecked
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
f235a09660
commit
2a560a3b24
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ public class CraftItemStack extends ItemStack {
|
|||
|
||||
public CraftItemStack(ItemStack item) {
|
||||
this(item.getTypeId(), item.getAmount(), item.getDurability());
|
||||
addEnchantments(item.getEnchantments());
|
||||
addUnsafeEnchantments(item.getEnchantments());
|
||||
}
|
||||
|
||||
/* 'Overwritten' constructors from ItemStack, yay for Java sucking */
|
||||
|
|
Loading…
Reference in a new issue