mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Fixed getData() not returning the correct values.
This commit is contained in:
parent
cc3f7710ef
commit
cba06d412f
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue