mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
BUGFIX: Stop current work when starting a program with Singularity (#1521)
This commit is contained in:
parent
dd5fcc077a
commit
d4f3cf7d81
@ -1026,6 +1026,9 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
|
|||||||
helpers.log(ctx, () => `Hacking level is too low to create '${p.name}' (level ${create.level} req)`);
|
helpers.log(ctx, () => `Hacking level is too low to create '${p.name}' (level ${create.level} req)`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (Player.currentWork) {
|
||||||
|
Player.finishWork(true);
|
||||||
|
}
|
||||||
|
|
||||||
Player.startWork(
|
Player.startWork(
|
||||||
new CreateProgramWork({
|
new CreateProgramWork({
|
||||||
|
Loading…
Reference in New Issue
Block a user