diff options
Diffstat (limited to 'src/main/java/org/bukkit/inventory')
-rw-r--r-- | src/main/java/org/bukkit/inventory/ItemStack.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java index 62ed3564..556a5821 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/src/main/java/org/bukkit/inventory/ItemStack.java @@ -116,6 +116,10 @@ public class ItemStack { * @return MaterialData for this item
*/
public MaterialData getData() {
+ if (Material.getMaterial(getTypeId()).getData() != null) {
+ data = Material.getMaterial(getTypeId()).getNewData((byte)this.durability);
+ }
+
return data;
}
|