mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 03:00:56 +02: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:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user