Merge pull request #1297 from danielyxie/hotfix

Hotfix
This commit is contained in:
hydroflame 2021-09-18 02:22:45 -04:00 committed by GitHub
commit c85ebe9ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

File diff suppressed because one or more lines are too long

@ -33,14 +33,12 @@ export function cat(
showLiterature(file);
return;
} else if (filename.endsWith(".msg")) {
const file = server.messages[i];
if (typeof file === "string") throw new Error(".msg file should not be a .lit");
if (file.filename === filename) {
const file = server.messages[i] as Message;
if (file.filename !== filename) continue;
showMessage(file);
return;
}
}
}
} else if (filename.endsWith(".txt")) {
const txt = terminal.getTextFile(player, filename);
if (txt != null) {

@ -31,6 +31,7 @@ const useStyles = makeStyles((theme: Theme) =>
},
preformatted: {
whiteSpace: "pre-wrap",
overflowWrap: "anywhere",
margin: theme.spacing(0),
},
list: {