13
0
geforkt von Mirrors/Paper

Allow special crafting data value on items. Fixes BUKKIT-3780

Dieser Commit ist enthalten in:
Travis Watkins 2013-03-16 18:16:00 -05:00
Ursprung 5515b0ee2b
Commit 737e8c5127

Datei anzeigen

@ -150,6 +150,12 @@ public final class ItemStack {
public void setData(int i) {
// CraftBukkit start - filter out data for items that shouldn't have it
// The crafting system uses this value for a special purpose so we have to allow it
if (i == 32767) {
this.damage = i;
return;
}
if (!(this.usesData() || Item.byId[this.id].o())) { // Should be canBeDepleted
i = 0;
}