-
Notifications
You must be signed in to change notification settings - Fork 199
Open
Description
Minecraft Development for IntelliJ plugin version
2025.1-1.8.6
IntelliJ version
2025.1.5.1
Operating System
macOS
Target platform
Mixins
Description of the bug
When targeting multiple methods using one handler with method = "*"
, MCDev suddenly produces unnecessary red error lines (the code works fine and the game runs correctly).
To reproduce:
- Take any mixin handler (This method of reproduction works with most handlers I've tested; however, some handlers work properly and do not produce the red lines. I find that WrapOperation and ModifyExpressionValue are the most consistent when reproducing.)
- Replace the full method qualifier with "*" instead
- Your mixin should now look something similar to
@ModifyExpressionValue(method = "*", at = @At(value = "CONSTANT", args = "intValue=2048"))
private int useHeightInstead(int original, @Local(argsOnly = true)BlockEntity blockEntity, @Local BeamEmitter.BeamSegment beamSegment) {
return blockEntity instanceof LaserBlockEntity ? beamSegment.getHeight() : original;
}

These red error lines can be ignored as they actually do not signify actual errors (the game runs with no crashes).