mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
fixed storage of data field
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
4b7aafea5d
commit
8fad7bf631
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue