Stop nosuchmethoderrors being thrown by dumb vanilla to api stuff
This commit is contained in:
@@ -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()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user