mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
fix few bugs
This commit is contained in:
parent
590bc37db0
commit
631d6ef04a
@ -467,6 +467,14 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
const argsToString = function (args: unknown[]): string {
|
||||
let out = "";
|
||||
for (let arg of args) {
|
||||
if (arg === null) {
|
||||
out += "null";
|
||||
continue;
|
||||
}
|
||||
if (arg === undefined) {
|
||||
out += "undefined";
|
||||
continue;
|
||||
}
|
||||
arg = toNative(arg);
|
||||
out += typeof arg === "object" ? JSON.stringify(arg) : `${arg}`;
|
||||
}
|
||||
|
@ -18,4 +18,5 @@ export function finish(this: IPlayer, cancelled: boolean): void {
|
||||
if (this.currentWork === null) return;
|
||||
this.currentWork.finish(this, cancelled);
|
||||
this.currentWork = null;
|
||||
this.focus = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user