Skip to content

If MixinExtras merged with Mixin is used, plugin gives false positive errors for expressions #2455

@iocmet

Description

@iocmet

Minecraft Development for IntelliJ plugin version

2024.3-1.8.3

IntelliJ version

2024.3.5

Operating System

Windows 10

Target platform

Mixins

Description of the bug

Observed "Cannot resolve any target instructions in target class" for ModifyExpressionValue and "There are no possible signatures for this injector" for its handler args

Expression used:

    @Definition(id = "blastResistance", local = @Local(type = float.class, ordinal = 1))
    @Definition(id = "HULL_BLAST_RESISTANCE", field = "Lcr0s/warpdrive/config/WarpDriveConfig;HULL_BLAST_RESISTANCE:[F")
    @Expression("blastResistance > HULL_BLAST_RESISTANCE[0]")
    @ModifyExpressionValue(method = "adjustHardnessAndResistance", at = @At("MIXINEXTRAS:EXPRESSION"))
    private static boolean modifyBlastResistanceCheck(boolean original) {}

Target method:
https://github.com/LemADEC/WarpDrive/blob/MC1.7/src/main/java/cr0s/warpdrive/config/Dictionary.java#L486

Should be reproducible with this jar (archived)
test.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions