Open ZZZank opened 1 month ago
Please show the mixin
Mixin: https://github.com/ZZZank/JEIAreaFixer/blob/4bde8d27ca6f2c0fbad150c95db603c36df95f61/src/main/java/zzzank/mod/jei_area_fixer/mixin/xat/MixinTrinketGui.java#L26 Target: https://github.com/XzeroAir/Trinkets/blob/0ee6c6b109415879b2744d98a12f740526258405/main/java/xzeroair/trinkets/client/gui/TrinketGui.java#L195
This is not the original project my issue refers to, but the error can also be reproduced in this project. The first project is using Architectury+1.16.5, another using RetroFuturaGradle+1.12.2
@Inject(
method = "renderTrinketInventory",
at = @At(
value = "CONSTANT",
ordinal = 0,
args = "intValue=64"
),
remap = false,
locals = LocalCapture.CAPTURE_FAILSOFT
)
public void jaf$clearCachedArea(int x, int y, CallbackInfo ci, int slots, int columnLength, int maxColumns) {
//method body will not affect whether the error will happen
}
EDIT: note that the it might not always raise an exception, it can also be code checking stop working after changing captureLocal related things like params and locals=XXXXX
Minecraft Development for IntelliJ plugin version
2024.2-1.8.2
IntelliJ version
2024.2.2
Operating System
windows11 23h2
Target platform
Architectury, Minecraft Forge, Mixins
Description of the bug
when opening an mixin class that contains a method whose mixin annotation (e.g.
@Inject
) uses captureLocal (e.g.locals=LocalCapture.CAPTURE_FAILSOFT
), an exception will happen:The syntax of mixin itself is correct, and can perform normally in-game.