mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
Merge pull request #255 from hydroflame/fix-join-banned-faction-exploit
fix faction join exploit
This commit is contained in:
commit
496ea728d0
@ -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