Stop nosuchmethoderrors being thrown by dumb vanilla to api stuff

This commit is contained in:
Lucas
2019-06-20 23:19:02 +02:00
parent 1a54fc4711
commit 1fa656ce2d
2 changed files with 3 additions and 8 deletions

View File

@@ -192,7 +192,7 @@ public class InjectHookMethod
new net.runelite.asm.pool.Method( new net.runelite.asm.pool.Method(
new net.runelite.asm.pool.Class(vanillaMethod.getClassFile().getName()), new net.runelite.asm.pool.Class(vanillaMethod.getClassFile().getName()),
hookMethod.getName(), hookMethod.getName(),
signature hookMethod.getDescriptor()
) )
); );
} }

View File

@@ -1,6 +1,5 @@
package net.runelite.mixins; package net.runelite.mixins;
import net.runelite.api.Nameable;
import net.runelite.api.mixins.Inject; import net.runelite.api.mixins.Inject;
import net.runelite.api.mixins.MethodHook; import net.runelite.api.mixins.MethodHook;
import net.runelite.api.mixins.Mixin; import net.runelite.api.mixins.Mixin;
@@ -13,6 +12,7 @@ public abstract class RSUserListMixin implements RSUserList
{ {
/** /**
* Default implementation of rl$add * Default implementation of rl$add
*
* @param name * @param name
* @param prevName * @param prevName
*/ */
@@ -24,6 +24,7 @@ public abstract class RSUserListMixin implements RSUserList
/** /**
* Default implementation of rl$del * Default implementation of rl$del
*
* @param nameable * @param nameable
*/ */
@Inject @Inject
@@ -45,10 +46,4 @@ public abstract class RSUserListMixin implements RSUserList
{ {
rl$remove(nameable); rl$remove(nameable);
} }
@Inject
public void remove(Nameable nameable)
{
rl$remove((RSUser) nameable);
}
} }