mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
Fix backwards logic on quitJob
This commit is contained in:
parent
6f017bf4f6
commit
7acb83ba77
@ -1854,7 +1854,7 @@ export function getNextCompanyPosition(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function quitJob(this: IPlayer, company: string, _sing = false): void {
|
export function quitJob(this: IPlayer, company: string, _sing = false): void {
|
||||||
if (this.isWorking == true && this.workType !== WorkType.Company && this.companyName == company) {
|
if (this.isWorking === true && this.workType === WorkType.Company && this.companyName === company) {
|
||||||
this.finishWork(true);
|
this.finishWork(true);
|
||||||
}
|
}
|
||||||
delete this.jobs[company];
|
delete this.jobs[company];
|
||||||
|
Loading…
Reference in New Issue
Block a user