mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
You cna now cd in dir that only contain text files.
This commit is contained in:
@@ -965,7 +965,8 @@ let Terminal = {
|
||||
}
|
||||
|
||||
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");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user