mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +00:00
[BUGFIX] Solved issues with clients that don't have a webclient
This commit is contained in:
@@ -88,7 +88,12 @@ public class ASMClassLoader extends ClassLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final ProtectionDomain getDomain() {
|
private final ProtectionDomain getDomain() {
|
||||||
CodeSource code = new CodeSource(null, (Certificate[]) null);
|
CodeSource code = null;
|
||||||
|
try {
|
||||||
|
code = new CodeSource(new URL("http://www.url.com/"), (Certificate[]) null);
|
||||||
|
} catch (MalformedURLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
return new ProtectionDomain(code, getPermissions());
|
return new ProtectionDomain(code, getPermissions());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,9 @@ public class AddSuperAdapter implements Injectable {
|
|||||||
AbstractInsnNode ain = (AbstractInsnNode) ili.next();
|
AbstractInsnNode ain = (AbstractInsnNode) ili.next();
|
||||||
if (ain.getOpcode() == Opcodes.INVOKESPECIAL) {
|
if (ain.getOpcode() == Opcodes.INVOKESPECIAL) {
|
||||||
MethodInsnNode min = (MethodInsnNode) ain;
|
MethodInsnNode min = (MethodInsnNode) ain;
|
||||||
min.owner = superClass;
|
if(!min.owner.equals(node.name)) {
|
||||||
|
min.owner = superClass;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user