mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +01:00
Clone item enchantments unchecked
This commit is contained in:
parent
894ab9f949
commit
402e3c26e1
@ -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 New Issue
Block a user