mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +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
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ public final class CraftItemStack extends ItemStack {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CraftItemStack asCraftMirror(net.minecraft.server.ItemStack original) {
|
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) {
|
public static CraftItemStack asCraftCopy(ItemStack original) {
|
||||||
|
|
Loading…
Reference in a new issue