mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 20:03:51 -07:00
Allow data on tool items. Fixes BUKKIT-3773
This commit is contained in:
@@ -150,7 +150,7 @@ public final class ItemStack {
|
||||
|
||||
public void setData(int i) {
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user