mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 22:23:51 +01:00
Prevent faction invitations from being accepted programmatically
This commit is contained in:
parent
b7157b63e0
commit
880167d76d
@ -748,7 +748,8 @@ const Engine = {
|
||||
item.appendChild(createElement("a", {
|
||||
innerText:"Accept Faction Invitation",
|
||||
class:"a-link-button", display:"inline", margin:"4px", padding:"4px",
|
||||
clickListener:()=>{
|
||||
clickListener: (e) => {
|
||||
if (!e.isTrusted) { return false; }
|
||||
joinFaction(Factions[factionName]);
|
||||
for (var i = 0; i < Player.factionInvitations.length; ++i) {
|
||||
if (Player.factionInvitations[i] == factionName || Factions[Player.factionInvitations[i]].isBanned) {
|
||||
|
Loading…
Reference in New Issue
Block a user