mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-19 22:33:48 -07:00
Clone item enchantments unchecked
This commit is contained in:
@@ -26,7 +26,7 @@ public class CraftItemStack extends ItemStack {
|
|||||||
|
|
||||||
public CraftItemStack(ItemStack item) {
|
public CraftItemStack(ItemStack item) {
|
||||||
this(item.getTypeId(), item.getAmount(), item.getDurability());
|
this(item.getTypeId(), item.getAmount(), item.getDurability());
|
||||||
addEnchantments(item.getEnchantments());
|
addUnsafeEnchantments(item.getEnchantments());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 'Overwritten' constructors from ItemStack, yay for Java sucking */
|
/* 'Overwritten' constructors from ItemStack, yay for Java sucking */
|
||||||
|
Reference in New Issue
Block a user