mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 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(
|
throw new IllegalStateException(
|
||||||
"Can not invoke non static method without an instance.");
|
"Can not invoke non static method without an instance.");
|
||||||
}
|
}
|
||||||
|
if(!isAccessible()) {
|
||||||
|
method.setAccessible(true);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Object retObject = method.invoke(instance, args);
|
Object retObject = method.invoke(instance, args);
|
||||||
return retObject;
|
return retObject;
|
||||||
|
|||||||
Reference in New Issue
Block a user