mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
You cna now cd in dir that only contain text files.
This commit is contained in:
parent
cedac23dfa
commit
a10100bf60
@ -965,7 +965,8 @@ let Terminal = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const server = Player.getCurrentServer();
|
const server = Player.getCurrentServer();
|
||||||
if(!server.scripts.some(script => script.filename.startsWith(evaledDir))) {
|
if(!server.scripts.some(script => script.filename.startsWith(evaledDir)) &&
|
||||||
|
!server.textFiles.some(file => file.fn.startsWith(evaledDir))) {
|
||||||
postError("Invalid path. Failed to change directories");
|
postError("Invalid path. Failed to change directories");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user