MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

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

Open iocmet opened this issue 9 months ago • 2 comments

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

iocmet avatar Apr 04 '25 14:04 iocmet

The mixin works at runtime?

LlamaLad7 avatar Apr 04 '25 14:04 LlamaLad7

It does

iocmet avatar Apr 04 '25 23:04 iocmet