mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-19 00:37:07 +00:00
feat: LCEOnline instead of LCELive
This commit is contained in:
parent
00e6ec2312
commit
dc0354a28f
|
|
@ -82,10 +82,12 @@ const LceOnlineView = memo(function LceOnlineView({
|
|||
const handleStartHosting = async () => {
|
||||
playPressSound();
|
||||
try {
|
||||
await TauriService.startHostRelay(lceOnlineService.accessToken ?? "", 25565);
|
||||
const token = lceOnlineService.accessToken ?? "";
|
||||
if (!token) return;
|
||||
TauriService.startHostRelay(token, 25565).catch(() => {});
|
||||
setIsHosting(true);
|
||||
} catch (e: unknown) {
|
||||
setErrorModal(e instanceof Error ? e.message : "Failed to start relay");
|
||||
setErrorModal(e instanceof Error ? e.message : "Failed to start hosting");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue