Skip to content

MEV with expressions issue #2543

@kr1viah

Description

@kr1viah

Minecraft Development for IntelliJ plugin version

2025.2-1.8.8

IntelliJ version

2025.2.3

Operating System

Linux Mint

Target platform

Mixins

Description of the bug

With this mixin:

@Mixin(SubtitlesHud.class)
public class SubtitlesHudMixin {
	@Definition(id = "bl", local = @Local(type = boolean.class)) // only local of type boolean in the target method
	@Expression("bl")
	@ModifyExpressionValue(method = "render", at = @At("MIXINEXTRAS:EXPRESSION"))
	private boolean render(boolean original, @Local SubtitlesHud.SubtitleEntry subtitleEntry) {
		return true;
	}
}

I get the error This injector can only target instructions that return a value, even though at runtime it works correctly.
File (differs from above, but the same thing occurs): https://github.com/kr1viah/kr1v-utils/blob/26dd9b07a85e1976153fd620ad3f38cd760e79ea/src/client/java/kr1v/kr1vUtils/client/mixin/gui/SubtitlesHudMixin.java

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