mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
CraftItemStack: Make sure this.item is not null when cloning.
Fixes BUKKIT-424
This commit is contained in:
parent
5124f8f462
commit
60a2d12250
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ public class CraftItemStack extends ItemStack {
|
|||
|
||||
@Override
|
||||
public CraftItemStack clone() {
|
||||
return new CraftItemStack(this.item.cloneItemStack());
|
||||
return new CraftItemStack(this.item == null ? this.item : this.item.cloneItemStack());
|
||||
}
|
||||
|
||||
public static net.minecraft.server.ItemStack createNMSItemStack(ItemStack original) {
|
||||
|
|
Loading…
Reference in a new issue