Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
iocmet opened this issue Apr 4, 2025 · 2 comments

Comments

@iocmet
Copy link

iocmet commented Apr 4, 2025

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

@LlamaLad7
Copy link
Contributor

The mixin works at runtime?

@iocmet
Copy link
Author

iocmet commented Apr 4, 2025

It does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants