Closed gXLg closed 2 months ago
This is an issue tracker, ask in the fabric discord's mixins channel. Also post a full log there.
Thx, I will repost in discord. As for the full log, I have lots of other mods producing a ton of output and this Exception is the only one regarding my mod
I am writing a fabric mod, which compiles on any version of Minecraft from
1.16.4
up to1.20.4
.So far I had no issues regarding the code, but issues came as soon as I wanted to use Mixins.
The method
ClientPlayerInteractionManager#interactBlock
changed its' parameters during these versions and now I struggle to find a way to write an injection, which should work with both kinds of signature.So far I tried
Using
require = 0
I was hoping to ignore the injection in case the method is not found. However the@Local
annotation screws it all up, since it cannot find the correct argument and thus throwsIs there any way to completely ignore an injection, if the method was not found? Commenting out the annotated argument
@Local Hand hand
and the method body seems to produce no exceptions and run just fine.I tried
locals = Locals.CAPTURE_FAILEXCEPTION
but this had no effect.