mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-27 17:00:34 +01:00
Really don't filter out -1 data in ItemStack.
This commit is contained in:
parent
b325ffc8f6
commit
6aaa1e83df
1 changed files with 6 additions and 4 deletions
|
@ -40,10 +40,12 @@ public final class ItemStack {
|
||||||
this.f = null;
|
this.f = null;
|
||||||
this.id = i;
|
this.id = i;
|
||||||
this.count = j;
|
this.count = j;
|
||||||
this.setData(k); // CraftBukkit
|
// CraftBukkit start - pass to setData to do filtering
|
||||||
if (this.damage < 0) {
|
this.setData(k);
|
||||||
this.damage = 0;
|
//if (this.damage < 0) {
|
||||||
}
|
// this.damage = 0;
|
||||||
|
//}
|
||||||
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ItemStack createStack(NBTTagCompound nbttagcompound) {
|
public static ItemStack createStack(NBTTagCompound nbttagcompound) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue