Skip to content

Commit

Permalink
Check if compatReAuthenticateMods is > 0 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrix-Shen committed Jul 4, 2022
1 parent 2b5a35e commit c546dd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void initDisconnectedScreen(Screen current, Screen parent, int width, int

AutoReconnectUtil.reAuthenticateButtonOffsetY = 0;

if (reason == null || AutoReconnectUtil.getTranslationKey(reason).startsWith("disconnect.loginFailed")) {
if (reason == null || AutoReconnectUtil.getTranslationKey(reason).startsWith("disconnect.loginFailed") && AutoReconnectUtil.compatReAuthenticateMods > 0) {
// Auto disable autoReconnect
TweakMyClientReference.getConfigHandler().configManager.setValue("featureAutoReconnect", false);

Expand Down

0 comments on commit c546dd7

Please sign in to comment.