mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 21:53:50 +01:00
fixed a bug that allowed players to join all factiosn as long as they got invited first
This commit is contained in:
parent
25be246a57
commit
b0d78dc532
@ -738,9 +738,9 @@ let Engine = {
|
|||||||
clickListener:()=>{
|
clickListener:()=>{
|
||||||
joinFaction(Factions[factionName]);
|
joinFaction(Factions[factionName]);
|
||||||
for (var i = 0; i < Player.factionInvitations.length; ++i) {
|
for (var i = 0; i < Player.factionInvitations.length; ++i) {
|
||||||
if (Player.factionInvitations[i] == factionName) {
|
if (Player.factionInvitations[i] == factionName || Factions[Player.factionInvitations[i]].isBanned) {
|
||||||
Player.factionInvitations.splice(i, 1);
|
Player.factionInvitations.splice(i, 1);
|
||||||
break;
|
i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Engine.displayFactionsInfo();
|
Engine.displayFactionsInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user