Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 21:10:10 +01:00
Clone item enchantments unchecked
Dieser Commit ist enthalten in:
Ursprung
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 */
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren