mirror of
https://github.com/2006-Scape/2006RebottedClient.git
synced 2026-07-03 00:31:48 +00:00
small bug fixes
This commit is contained in:
@@ -4745,10 +4745,10 @@ public class Client extends GameApplet {
|
|||||||
inputDialogState = 0;
|
inputDialogState = 0;
|
||||||
updateChatbox = true;
|
updateChatbox = true;
|
||||||
}
|
}
|
||||||
int first = -1;
|
int first;
|
||||||
int button = -1;
|
int button;
|
||||||
int action = -1;
|
int action;
|
||||||
int clicked = -1;
|
int clicked;
|
||||||
//First: 0 button: 0 action: 412 clicked: 777 actionText: Attack @yel@Man@gr1@ (level-2)
|
//First: 0 button: 0 action: 412 clicked: 777 actionText: Attack @yel@Man@gr1@ (level-2)
|
||||||
if(menuAction != null) {
|
if(menuAction != null) {
|
||||||
first = menuAction.getMouseX();
|
first = menuAction.getMouseX();
|
||||||
|
|||||||
@@ -65,14 +65,16 @@ public class APILoader {
|
|||||||
classArchive.loadClasses(classMap);
|
classArchive.loadClasses(classMap);
|
||||||
final ASMClassLoader classLoader = new ASMClassLoader(classArchive);
|
final ASMClassLoader classLoader = new ASMClassLoader(classArchive);
|
||||||
for(ClassNode node : classArchive.classes.values()) {
|
for(ClassNode node : classArchive.classes.values()) {
|
||||||
for(AnnotationNode annotationNode : node.visibleAnnotations) {
|
if (node.visibleAnnotations != null && node.visibleAnnotations.size() > 0) {
|
||||||
if(annotationNode.desc.equals("L"+APIManifest.class.getCanonicalName().replaceAll("\\.", "/")+";")) {
|
for (AnnotationNode annotationNode : node.visibleAnnotations) {
|
||||||
final Class<?> clazz = classLoader.loadClass(node.name.replaceAll("/", "."));
|
if (annotationNode.desc.equals("L" + APIManifest.class.getCanonicalName().replaceAll("\\.", "/") + ";")) {
|
||||||
final APIManifest manifest = clazz.getAnnotation(APIManifest.class);
|
final Class<?> clazz = classLoader.loadClass(node.name.replaceAll("/", "."));
|
||||||
rebottedAPI = (RebottedAPI) clazz.getConstructors()[0].newInstance(client);
|
final APIManifest manifest = clazz.getAnnotation(APIManifest.class);
|
||||||
System.out.println("Rebotted API version "+manifest.version()+" has been loaded...");
|
rebottedAPI = (RebottedAPI) clazz.getConstructors()[0].newInstance(client);
|
||||||
final APIData apiData = new APIData(clazz, manifest.version(), null, classArchive, classLoader);
|
System.out.println("Rebotted API version " + manifest.version() + " has been loaded...");
|
||||||
return apiData;
|
final APIData apiData = new APIData(clazz, manifest.version(), null, classArchive, classLoader);
|
||||||
|
return apiData;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public final class BotFrame extends JFrame implements ActionListener {
|
|||||||
setStopped();
|
setStopped();
|
||||||
ScriptHandler.getInstance().stop();
|
ScriptHandler.getInstance().stop();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "entities":
|
case "entities":
|
||||||
Configuration.namesAboveHeads = !Configuration.namesAboveHeads;
|
Configuration.namesAboveHeads = !Configuration.namesAboveHeads;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user