SPIGOT-3108: Hack around mirroring empty item stacks

This commit is contained in:
md_5 2017-03-08 14:33:40 +11:00
parent cb44e932be
commit 7fce67144d

View file

@ -71,7 +71,7 @@ public final class CraftItemStack extends ItemStack {
}
public static CraftItemStack asCraftMirror(net.minecraft.server.ItemStack original) {
return new CraftItemStack(original);
return new CraftItemStack((original == null || original.isEmpty()) ? null : original);
}
public static CraftItemStack asCraftCopy(ItemStack original) {