File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/main/java/com/stirante/RuneChanger Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ public class InGameButton {
24
24
25
25
//Used for testing the UI
26
26
private static final boolean MOCK_SESSION = false ;
27
- private static final boolean AUTO_ACCEPT = true ;
27
+ //Just testing auto accepting
28
+ private static final boolean AUTO_ACCEPT = false ;
28
29
29
30
private static ClientApi api ;
30
31
private static GuiHandler gui ;
@@ -165,13 +166,11 @@ public static void main(String[] args) {
165
166
socket .setSocketListener (new ClientWebSocket .SocketListener () {
166
167
@ Override
167
168
public void onEvent (ClientWebSocket .Event event ) {
168
- System .out .println (event );
169
169
if (event .getUri ().equalsIgnoreCase ("/lol-champ-select/v1/session" )) {
170
170
if (event .getEventType ().equalsIgnoreCase ("Delete" )) gui .tryClose ();
171
171
else handleSession ((LolChampSelectChampSelectSession ) event .getData ());
172
172
} else if (AUTO_ACCEPT && event .getUri ().equalsIgnoreCase ("/lol-lobby/v2/lobby/matchmaking/search-state" )) {
173
- LolLobbyLobbyMatchmakingSearchResource data = (LolLobbyLobbyMatchmakingSearchResource ) event .getData ();
174
- if (data .searchState == LolLobbyLobbyMatchmakingSearchState .FOUND ) {
173
+ if (((LolLobbyLobbyMatchmakingSearchResource ) event .getData ()).searchState == LolLobbyLobbyMatchmakingSearchState .FOUND ) {
175
174
try {
176
175
api .executePost ("/lol-matchmaking/v1/ready-check/accept" );
177
176
} catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments