Skip to content

Goto target for FIELD injectors doesn't handle get-and-set operations #2192

@DenWav

Description

@DenWav

Minecraft Dev will incorrectly go to the second line of this method with @At(value = "FIELD", ordinal = 1) rather than the first, as it does not properly take into account the first line represents both a GETFIELD followed by a PUTFIELD:

public void example(int i) {
    this.example += i;
    System.out.println(this.example);
}

Minecraft Dev does correctly identify which line to go to when opcode is specified.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions