Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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