mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-03 13:53:51 -07:00
Really don't filter out -1 data in ItemStack.
This commit is contained in:
@@ -40,10 +40,12 @@ public final class ItemStack {
|
||||
this.f = null;
|
||||
this.id = i;
|
||||
this.count = j;
|
||||
this.setData(k); // CraftBukkit
|
||||
if (this.damage < 0) {
|
||||
this.damage = 0;
|
||||
}
|
||||
// CraftBukkit start - pass to setData to do filtering
|
||||
this.setData(k);
|
||||
//if (this.damage < 0) {
|
||||
// this.damage = 0;
|
||||
//}
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
public static ItemStack createStack(NBTTagCompound nbttagcompound) {
|
||||
|
Reference in New Issue
Block a user