mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +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)`);
|
||||
return false;
|
||||
}
|
||||
if (Player.currentWork) {
|
||||
Player.finishWork(true);
|
||||
}
|
||||
|
||||
Player.startWork(
|
||||
new CreateProgramWork({
|
||||
|
Loading…
Reference in New Issue
Block a user