geforkt von Mirrors/Paper
CraftItemStack: Make sure this.item is not null when cloning.
Fixes BUKKIT-424
Dieser Commit ist enthalten in:
Ursprung
5124f8f462
Commit
60a2d12250
@ -212,7 +212,7 @@ public class CraftItemStack extends ItemStack {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CraftItemStack clone() {
|
public CraftItemStack clone() {
|
||||||
return new CraftItemStack(this.item.cloneItemStack());
|
return new CraftItemStack(this.item == null ? this.item : this.item.cloneItemStack());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static net.minecraft.server.ItemStack createNMSItemStack(ItemStack original) {
|
public static net.minecraft.server.ItemStack createNMSItemStack(ItemStack original) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren