mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 16:49:10 +00:00
RefMethod invoke fix
This commit is contained in:
@@ -130,6 +130,9 @@ public class RefMethod extends RefModifiers {
|
||||
throw new IllegalStateException(
|
||||
"Can not invoke non static method without an instance.");
|
||||
}
|
||||
if(!isAccessible()) {
|
||||
method.setAccessible(true);
|
||||
}
|
||||
try {
|
||||
Object retObject = method.invoke(instance, args);
|
||||
return retObject;
|
||||
|
||||
Reference in New Issue
Block a user