mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
fix receiving multiple times the same invite
This commit is contained in:
parent
ed821617c0
commit
d64ce5271e
@ -20,7 +20,7 @@ import { dialogBoxCreate } from "../ui/React/DialogBox";
|
||||
import { InvitationEvent } from "./ui/InvitationModal";
|
||||
|
||||
export function inviteToFaction(faction: Faction): void {
|
||||
Player.factionInvitations.push(faction.name);
|
||||
Player.receiveInvite(faction.name);
|
||||
faction.alreadyInvited = true;
|
||||
if (!Settings.SuppressFactionInvites) {
|
||||
InvitationEvent.emit(faction);
|
||||
|
Loading…
Reference in New Issue
Block a user