mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
fix scp and write in ns1
This commit is contained in:
parent
3cbf2e8e7d
commit
badba2eb1b
@ -167,14 +167,7 @@ function startNetscript1Script(workerScript: WorkerScript): Promise<WorkerScript
|
||||
const entry = ns[name];
|
||||
if (typeof entry === "function") {
|
||||
//Async functions need to be wrapped. See JS-Interpreter documentation
|
||||
if (
|
||||
name === "hack" ||
|
||||
name === "grow" ||
|
||||
name === "weaken" ||
|
||||
name === "sleep" ||
|
||||
name === "prompt" ||
|
||||
name === "manualHack"
|
||||
) {
|
||||
if (["hack", "grow", "weaken", "sleep", "prompt", "manualHack", "scp", "write"].includes(name)) {
|
||||
const tempWrapper = function (...args: any[]): void {
|
||||
const fnArgs = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user