geforkt von Mirrors/Paper
[Bleeding] Cleanup clone method.
By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Ursprung
da4df32343
Commit
39944f7043
@ -216,7 +216,11 @@ public class CraftItemStack extends ItemStack {
|
||||
|
||||
@Override
|
||||
public CraftItemStack clone() {
|
||||
return new CraftItemStack(this.item == null ? this.item : this.item.cloneItemStack());
|
||||
CraftItemStack itemStack = (CraftItemStack) super.clone();
|
||||
if (this.item != null) {
|
||||
itemStack.item = this.item.cloneItemStack();
|
||||
}
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
public static net.minecraft.server.ItemStack createNMSItemStack(ItemStack original) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren