mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Allow data on tool items. Fixes BUKKIT-3773
This commit is contained in:
parent
2e47a1eb80
commit
ff1c1daf69
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ public final class ItemStack {
|
||||||
|
|
||||||
public void setData(int i) {
|
public void setData(int i) {
|
||||||
// CraftBukkit start - filter out data for items that shouldn't have it
|
// CraftBukkit start - filter out data for items that shouldn't have it
|
||||||
if (!this.usesData()) {
|
if (!(this.usesData() || Item.byId[this.id].o())) { // Should be canBeDepleted
|
||||||
i = 0;
|
i = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue