project(mixins): Ignore clicks outside login screen

This commit is contained in:
Owain van Brakel
2022-05-01 12:47:37 +02:00
parent 5d86065d25
commit 284ff537b8
4 changed files with 45 additions and 5 deletions

View File

@@ -1773,21 +1773,21 @@ public final class Client extends GameEngine implements Usernamed, OAuthApi {
Archive.load(); // L: 937
UserComparator9.method2619(); // L: 938
} else if (gameState == 5) { // L: 940
class360.method6592(this, class13.fontPlain12); // L: 941
class360.loginScreen(this, class13.fontPlain12); // L: 941
Archive.load(); // L: 942
UserComparator9.method2619(); // L: 943
} else if (gameState != 10 && gameState != 11) { // L: 945
if (gameState == 20) { // L: 946
class360.method6592(this, class13.fontPlain12); // L: 947
class360.loginScreen(this, class13.fontPlain12); // L: 947
this.doCycleLoggedOut(); // L: 948
} else if (gameState == 50) { // L: 950
class360.method6592(this, class13.fontPlain12); // L: 951
class360.loginScreen(this, class13.fontPlain12); // L: 951
this.doCycleLoggedOut(); // L: 952
} else if (gameState == 25) { // L: 954
FriendSystem.method1715();
}
} else {
class360.method6592(this, class13.fontPlain12);
class360.loginScreen(this, class13.fontPlain12);
}
if (gameState == 30) { // L: 955

View File

@@ -7,6 +7,7 @@ import java.io.IOException;
import java.text.ParseException;
import java.util.Comparator;
import java.util.Date;
import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@@ -89,7 +90,8 @@ class class360 implements Comparator {
descriptor = "(Lao;Lmd;B)V",
garbageValue = "3"
)
static void method6592(GameEngine var0, Font var1) {
@Export("loginScreen")
static void loginScreen(GameEngine var0, Font var1) {
int var4;
int var38;
if (Login.worldSelectOpen) { // L: 309