mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:21:32 +01:00
commit
6eaf9463fd
@ -59,7 +59,9 @@ public class GeneralMod extends Mod {
|
|||||||
break;
|
break;
|
||||||
case "Menu Animations":
|
case "Menu Animations":
|
||||||
case "Menu Animations Speed":
|
case "Menu Animations Speed":
|
||||||
|
if(ClickGUI.introAnimation != null) {
|
||||||
ClickGUI.introAnimation.setDuration(Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations").getValBoolean() ? Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations Speed").getValInt() : 1);
|
ClickGUI.introAnimation.setDuration(Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations").getValBoolean() ? Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations Speed").getValInt() : 1);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,11 +51,13 @@ public class AccountManager {
|
|||||||
Requests.httpPost(Client.getInstance().getApiUrl() + "/set_selected", new JSONObject().put("selected", index).toString());
|
Requests.httpPost(Client.getInstance().getApiUrl() + "/set_selected", new JSONObject().put("selected", index).toString());
|
||||||
}
|
}
|
||||||
selected = account;
|
selected = account;
|
||||||
|
if(!force) {
|
||||||
Session session = new Session(account.username, nameToUuid(account.username), account.mc_access_token != null ? account.mc_access_token : "0", account.mc_access_token != null ? "msa" : "legacy");
|
Session session = new Session(account.username, nameToUuid(account.username), account.mc_access_token != null ? account.mc_access_token : "0", account.mc_access_token != null ? "msa" : "legacy");
|
||||||
((MinecraftExt) Minecraft.getMinecraft()).setSession(session);
|
((MinecraftExt) Minecraft.getMinecraft()).setSession(session);
|
||||||
Client.getInstance().getUserData().setAccessToken(selected.access_token);
|
Client.getInstance().getUserData().setAccessToken(selected.access_token);
|
||||||
Client.getInstance().getSilentSocket().Disconnect();
|
Client.getInstance().getSilentSocket().Disconnect();
|
||||||
Client.getInstance().getSilentSocket().Connect(selected.access_token);
|
Client.getInstance().getSilentSocket().Connect(selected.access_token);
|
||||||
|
}
|
||||||
PlayerResponse acc = Client.getInstance().updateAccount();
|
PlayerResponse acc = Client.getInstance().updateAccount();
|
||||||
if(acc != null) {
|
if(acc != null) {
|
||||||
Client.getInstance().setAccount(acc.getAccount());
|
Client.getInstance().setAccount(acc.getAccount());
|
||||||
|
Loading…
Reference in New Issue
Block a user