mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-09 06:50:32 +08:00
CraftItemStack: Make sure this.item is not null when cloning.
Fixes BUKKIT-424
This commit is contained in:
parent
5124f8f462
commit
60a2d12250
@ -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 New Issue
Block a user