mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
Fixed bug with Player.workForFaction() calling the wrong 'finish' function when it goes over the max time (after being offline)
This commit is contained in:
parent
ae4eb2f30e
commit
94739129de
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -1006,7 +1006,7 @@ PlayerObject.prototype.workForFaction = function(numCycles) {
|
||||
|
||||
//If timeWorked == 20 hours, then finish. You can only work for the faction for 20 hours
|
||||
if (overMax || this.timeWorked >= CONSTANTS.MillisecondsPer20Hours) {
|
||||
return this.finishWork(false);
|
||||
return this.finishFactionWork(false);
|
||||
}
|
||||
|
||||
var txt = document.getElementById("work-in-progress-text");
|
||||
|
Loading…
Reference in New Issue
Block a user