Fixed getData() not returning the correct values.

This commit is contained in:
EvilSeph
2011-04-25 07:17:12 -04:00
parent 54fc471ec5
commit 4ffc9a6d57

View File

@@ -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;
}