Skip to content

Commit 7cfb16c

Browse files
committed
Remove logging and disable experimental features
1 parent 2e0ce59 commit 7cfb16c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/com/stirante/RuneChanger/InGameButton.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public class InGameButton {
2424

2525
//Used for testing the UI
2626
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;
2829

2930
private static ClientApi api;
3031
private static GuiHandler gui;
@@ -165,13 +166,11 @@ public static void main(String[] args) {
165166
socket.setSocketListener(new ClientWebSocket.SocketListener() {
166167
@Override
167168
public void onEvent(ClientWebSocket.Event event) {
168-
System.out.println(event);
169169
if (event.getUri().equalsIgnoreCase("/lol-champ-select/v1/session")) {
170170
if (event.getEventType().equalsIgnoreCase("Delete")) gui.tryClose();
171171
else handleSession((LolChampSelectChampSelectSession) event.getData());
172172
} 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) {
175174
try {
176175
api.executePost("/lol-matchmaking/v1/ready-check/accept");
177176
} catch (IOException e) {

0 commit comments

Comments
 (0)