mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-23 00:22:59 +00:00
fix(lceonline): client not opening & webview window for lceonline login (#129)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
"core:resources:default",
|
||||
"core:tray:default",
|
||||
"core:webview:default",
|
||||
"core:webview:allow-create-webview-window",
|
||||
"core:window:default",
|
||||
"core:window:allow-set-decorations",
|
||||
"core:window:allow-is-fullscreen",
|
||||
|
||||
@@ -27,9 +27,9 @@ pub async fn launch_game(
|
||||
perform_instance_sync(&app, &instance_id).await?;
|
||||
let working_dir = util::get_instance_working_dir(&app, &instance_id);
|
||||
let config_val = config::load_config_raw(app.clone());
|
||||
let lce_live = McServer { name: "LCELive Game".into(), ip: "127.0.0.1".into(), port: 61000 };
|
||||
if !servers.iter().any(|s| s.ip == lce_live.ip && s.port == lce_live.port) {
|
||||
servers.push(lce_live);
|
||||
let lce_online = McServer { name: "LCEOnline Game".into(), ip: "127.0.0.1".into(), port: 61000 };
|
||||
if !servers.iter().any(|s| s.ip == lce_online.ip && s.port == lce_online.port) {
|
||||
servers.push(lce_online);
|
||||
}
|
||||
if let Some(ref saved) = config_val.saved_servers {
|
||||
for s in saved {
|
||||
|
||||
Reference in New Issue
Block a user