diff options
author | Tahg <tahgtahv@gmail.com> | 2011-01-17 17:39:27 -0500 |
---|---|---|
committer | Tahg <tahgtahv@gmail.com> | 2011-01-17 17:39:27 -0500 |
commit | 5c70e86d89dae9d13440d3ffb42ad69b2d4e3eaa (patch) | |
tree | 55679ce232a1c7143b94f2b50a4952ce29190fcc /src | |
parent | f4908db7c14eb9537b3bf2adc12175d39c776079 (diff) | |
download | bukkit-5c70e86d89dae9d13440d3ffb42ad69b2d4e3eaa.tar bukkit-5c70e86d89dae9d13440d3ffb42ad69b2d4e3eaa.tar.gz bukkit-5c70e86d89dae9d13440d3ffb42ad69b2d4e3eaa.tar.lz bukkit-5c70e86d89dae9d13440d3ffb42ad69b2d4e3eaa.tar.xz bukkit-5c70e86d89dae9d13440d3ffb42ad69b2d4e3eaa.zip |
fixed storage of data field
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/inventory/ItemStack.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java index f7b509bc..c9e2e435 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/src/main/java/org/bukkit/inventory/ItemStack.java @@ -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) {
|