mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
SPIGOT-3108: Hack around mirroring empty item stacks
By: md_5 <git@md-5.net>
This commit is contained in:
parent
3de67df146
commit
11c88dc8f2
@ -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