mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 20:37:05 +02:00
API: Standardize "nextCompletion" promise in tasks (#2687)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Work } from "../../Work/Work";
|
||||
import type { PlayerBaseWork } from "../../Work/Work";
|
||||
|
||||
import type { PlayerObject } from "./PlayerObject";
|
||||
|
||||
export function startWork(this: PlayerObject, w: Work): void {
|
||||
export function startWork(this: PlayerObject, w: PlayerBaseWork): void {
|
||||
if (this.currentWork !== null) {
|
||||
this.currentWork.finish(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user