SPIGOT-3108: Hack around mirroring empty item stacks

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2017-03-08 14:33:40 +11:00
parent 3de67df146
commit 11c88dc8f2

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) {