Skip to content

Durability data missing, results in function that always returns None.  #493

@Miro-Andrin

Description

@Miro-Andrin

Description

The method:

impl Item {
   pub fn durability(&self) -> Option<u32> {
        ...
   }
}

Always returns None. This file is generated using 'items.py' using the data from Prismarinejs/minecraft-data. However
the items.json only contains damage values for minecraft 1.14 making our function return None in every case. So currently it does the same as this implementation.

impl Item{
   pub fn durability(&self) -> Option<u32> {
        None
   }
}

Related Issues

If #384 ever pans out, then we would want to add some sanity checks for stuff like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions