mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-07 19:14:37 +01:00
Small cat fix
cat no longer shows error message for no file found when a message or literature file was found
This commit is contained in:
@ -26,10 +26,10 @@ export function cat(args: (string | number | boolean)[], server: BaseServer): vo
|
||||
|
||||
// Message
|
||||
if (checkEnum(MessageFilename, path)) {
|
||||
if (server.messages.includes(path)) showMessage(path);
|
||||
if (server.messages.includes(path)) return showMessage(path);
|
||||
}
|
||||
if (checkEnum(LiteratureName, path)) {
|
||||
if (server.messages.includes(path)) showLiterature(path);
|
||||
if (server.messages.includes(path)) return showLiterature(path);
|
||||
}
|
||||
Terminal.error(`No file at path ${path}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user