mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 22:38:34 +02:00
Fixed a performance issue when installing too many Neuroflux at once.
This commit is contained in:
@@ -394,6 +394,7 @@ export function loseMoney(money) {
|
||||
console.error("NaN passed into Player.loseMoney()");
|
||||
return;
|
||||
}
|
||||
if(this.money.eq(Infinity) && money === Infinity) return;
|
||||
this.money = this.money.minus(money);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user