geforkt von Mirrors/Paper
SPIGOT-3108: Hack around mirroring empty item stacks
Dieser Commit ist enthalten in:
Ursprung
cb44e932be
Commit
7fce67144d
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren