mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-09-19 20:38:42 +02:00
fix fileExists not finding coding contrafcts
This commit is contained in:
parent
f4668b21ca
commit
3c03ac4f18
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user