Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Don't filter out -1 data in ItemStack. Fixes BUKKIT-3824
Dieser Commit ist enthalten in:
Ursprung
26d1f9189a
Commit
2fc755cc65
@ -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;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren