Skip to content

MCDev told me to use variable names but been told this will break? #2646

Description

@SymphonyDawn3

Minecraft Development for IntelliJ plugin version

2025.2-1.8.17

IntelliJ version

2025.2

Operating System

Linux (PopOS)

Target platform

Architectury

Description of the bug

In the Minecraft Fabric Discord server, @LlamaLad7 told not to use variable names and instead use ordinal names. He told me that this might not work because the local variable names are inconsistent in reality. IDEA is giving me a warning that I should use this:

private boolean onPatrolLeaderDeath(Object object, Operation<Boolean> original, @Local(name = "player") LocalRef<Player> player) {
    // ...
}

Instead of this:

private boolean onPatrolLeaderDeath(Object object, Operation<Boolean> original, @Local LocalRef<Player> player) {
    // ...
}
Image

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions