You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specified index 0 for @ModifyArg is invalid for args (Lnet/minecraft/client/util/Window;Ljava/lang/String;), expected Ljava/lang/String;
Originally the target method has only a single argument of type String, however when the Redirect is injected at the desired instruction, there is now an instance parameter as well.
It seems that index does not take into account the instance parameter in the redirector which replaced the original instruction, and as such tries to target the wrong thing.
It works fine when they apply the other way round, as there is only one parameter for the ModifyArg to look at at that point.
The text was updated successfully, but these errors were encountered:
Given the following example case:
I am greeted with the following error:
Originally the
target
method has only a single argument of typeString
, however when theRedirect
is injected at the desired instruction, there is now aninstance
parameter as well.It seems that
index
does not take into account theinstance
parameter in the redirector which replaced the original instruction, and as such tries to target the wrong thing.It works fine when they apply the other way round, as there is only one parameter for the
ModifyArg
to look at at that point.The text was updated successfully, but these errors were encountered: