3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 13:00:06 +01:00

Don't filter out -1 data in ItemStack. Fixes BUKKIT-3824

Dieser Commit ist enthalten in:
Travis Watkins 2013-03-20 09:41:16 -05:00
Ursprung 26d1f9189a
Commit 2fc755cc65

Datei anzeigen

@ -156,7 +156,7 @@ public final class ItemStack {
return;
}
if (!(this.usesData() || Item.byId[this.id].o() || this.id > 256)) { // Should be canBeDepleted
if (!(this.usesData() || Item.byId[this.id].o() || this.id > 255)) { // Should be usesDurability
i = 0;
}
@ -167,7 +167,7 @@ public final class ItemStack {
// CraftBukkit end
this.damage = i;
if (this.damage < 0) {
if (this.damage < -1) { // CraftBukkit - don't filter -1, we use it
this.damage = 0;
}
}