Fixed getData() not returning the correct values.
This commit is contained in:
parent
cc3f7710ef
commit
cba06d412f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user