Skip to content

ItemStack.metadata incorrect name #179

Description

@danilwhale

Type
Field

Describe where the element is
net/minecraft/item/ItemStack
I f_9776894

Description of the element
Damage value of the stack

Expected name
damage

Additional Context

// ...
    public void damageAndBreak(int damage) {
        //               v
        this.metadata += damage;
        //                       v
        if (this.metadata > this.getMaxDamage()) {
            --this.size;
            if (this.size < 0) {
                this.size = 0;
            }
            this.metadata = 0;
        }
// ...

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions