Skip to content

Can no longer use breakpoints in Mixins #1999

@Insane96

Description

@Insane96

Minecraft Development for IntelliJ plugin version

2023.1-1.6.3-377

IntelliJ version

#IC-231.8109.175

Operating System

Windows 11

Target platform

Minecraft Forge, Mixins

Description of the bug

Since I've updated to IntelliJ 2023.1 (and subsequently the plugin), adding breakpoints into mixins no longer works.

I have this simple mixin:

@Mixin(ArrowInfiniteEnchantment.class)
public abstract class ArrowInfiniteEnchantmentMixin {
	@Inject(at = @At("RETURN"), method = "getMinCost", cancellable = true)
	private void onGetMinCost(int lvl, CallbackInfoReturnable<Integer> cir) {
		cir.setReturnValue(lvl * 12);
	}

	@Inject(at = @At("RETURN"), method = "getMaxCost", cancellable = true)
	private void onGetMaxCost(int lvl, CallbackInfoReturnable<Integer> cir) {
		cir.setReturnValue(65);
	}
}

But when I try to set the breakpoint to cir.setReturnValue(lvl * 12); I get
image

The error doesn't pop out if the breakpoint is set when debugging is stopped, but it still doesn't work

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