Skip to content

Commit ddb5a16

Browse files
committed
fix(lobby): silly typo in path check
1 parent a737e7c commit ddb5a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

defaults/portal2/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function wsMessageHandler (event) {
3333
case "cmd": return SendToConsole(data.value);
3434
case "ping": return ws.send(JSON.stringify({ type: "pong" }));
3535
case "getMap": {
36-
if (pathExists(`maps/${file}.bsp`)) {
36+
if (pathExists(`maps/${data.value.file}.bsp`)) {
3737
ws.send(JSON.stringify({ type: "getMap", value: 1 }));
3838
} else {
3939
downloadMap(data.value.link, data.value.file);

0 commit comments

Comments
 (0)