mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Merge pull request #2472 from TheMas3212/fix-2245
Fix toLowercase in fileExists check for literature and message files
This commit is contained in:
commit
6a00501d94
@ -1575,7 +1575,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i = 0; i < server.messages.length; ++i) {
|
for (let i = 0; i < server.messages.length; ++i) {
|
||||||
if (filename.toLowerCase() === server.messages[i]) {
|
if (filename.toLowerCase() === server.messages[i].toLowerCase()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,9 +58,6 @@ export class BaseServer {
|
|||||||
maxRam = 0;
|
maxRam = 0;
|
||||||
|
|
||||||
// Message files AND Literature files on this Server
|
// Message files AND Literature files on this Server
|
||||||
// For Literature files, this array contains only the filename (string)
|
|
||||||
// For Messages, it contains the actual Message object
|
|
||||||
// TODO Separate literature files into its own property
|
|
||||||
messages: string[] = [];
|
messages: string[] = [];
|
||||||
|
|
||||||
// Name of company/faction/etc. that this server belongs to.
|
// Name of company/faction/etc. that this server belongs to.
|
||||||
|
Loading…
Reference in New Issue
Block a user