From f4d3d187afc34c4066b51f75429cac2146ce6f25 Mon Sep 17 00:00:00 2001 From: iTNTPiston Date: Sat, 16 Jul 2022 18:54:18 -0700 Subject: [PATCH] hot fix sync gamedata command --- src/core/command/Parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/command/Parser.ts b/src/core/command/Parser.ts index 990a3b2..af8ffe4 100644 --- a/src/core/command/Parser.ts +++ b/src/core/command/Parser.ts @@ -271,7 +271,7 @@ const parseSimpleCommands = (tokens: string[]): Command | undefined => { if(tokens.length===2 && keywordMatchAny(tokens[0],["close", "exit"]) && keywordMatch(tokens[1],"game")){ return new CommandCloseGame(); } - if(tokens.length===2 && keywordMatch(tokens[0],"sync") && keywordMatch(tokens[0],"gamedata")){ + if(tokens.length===2 && keywordMatch(tokens[0],"sync") && keywordMatch(tokens[1],"gamedata")){ return new CommandSync(); } if(tokens.length===2 && (keywordMatch(tokens[0],"enter") || keywordMatch(tokens[0],"exit")) && (keywordMatch(tokens[1],"eventide") || keywordMatch(tokens[1],"tots"))){