Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
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