mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
SPIGOT-3108: Hack around mirroring empty item stacks
This commit is contained in:
parent
cb44e932be
commit
7fce67144d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user