fixed storage of data field

By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
Bukkit/Spigot 2011-01-17 17:39:27 -05:00
parent 4b7aafea5d
commit 8fad7bf631

View file

@ -41,7 +41,10 @@ public class ItemStack {
this.type = type;
this.amount = amount;
this.damage = damage;
if (data != null) createData(data);
if (data != null) {
createData(data);
this.damage = data;
}
}
public ItemStack(final Material type, final int amount, final byte damage, final Byte data) {