Sponge Mixin cannot find Mapping


#1

Hello, I have been trying to use the mixin API but I ca’t get this to work.
This is my build.gradle:
https://hastebin.com/azeserarav.cs
And this is my code:
https://hastebin.com/bidelufaca.java
But it gives me this error:
https://hastebin.com/ekiwiceziv.coffeescript

Any help??


#2

lwjgl isnt obfuscated so you need to turn of remapping for it
you can either add remap = false to your @Mixin annotation or to the method directly


#3

Thanks, it worked!


#4

Hello, although it worked in the development environement, when I tried to install it to the client (with the forge’s client tweaker) it gives me this error:

could not find any targets matching ‘dispatchKeypresses’ in the target class ave. Using refmap mixin.hyze.refmap.json org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: @Inject annotation on handler$runTickKeyboard$zza000 could not find any targets matching ‘dispatchKeypresses’ in the target class ave.

any help?