mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 03:24:48 +01:00
fix fileExists not finding coding contrafcts
This commit is contained in:
@ -1300,6 +1300,8 @@ const base: InternalAPI<NS> = {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
const contract = server.contracts.find((c) => c.fn.toLowerCase() === filename.toLowerCase());
|
||||
if (contract) return true;
|
||||
const txtFile = getTextFile(filename, server);
|
||||
return txtFile != null;
|
||||
},
|
||||
|
Reference in New Issue
Block a user