From 017d6dcbe24a6b25ad250b2b32bd863f7dae768a Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Wed, 18 May 2022 19:21:04 -0700 Subject: [PATCH] add a couple alerts --- src/ui/components/ServerLaunchSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index 338e377..6d3c729 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -74,7 +74,7 @@ export default class ServerLaunchSection extends React.Component async playGame() { const config = await getConfig() - if (!config.game_install_path) return + if (!config.game_install_path) return alert('Game path not set!') // Connect to proxy if (config.toggle_grasscutter) { @@ -107,7 +107,7 @@ export default class ServerLaunchSection extends React.Component async launchServer() { const config = await getConfig() - if (!config.grasscutter_path) return + if (!config.grasscutter_path) return alert('Grasscutter not installed or set!') let jarFolder = config.grasscutter_path