mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00: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…
Add table
Reference in a new issue