mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
fixed storage of data field
This commit is contained in:
parent
f4908db7c1
commit
5c70e86d89
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…
Add table
Reference in a new issue