Fixed an issue where a faction could be joined twice.

This commit is contained in:
Olivier Gagnon
2021-08-15 14:31:38 -04:00
parent 41871de26c
commit 056f0213dd
8 changed files with 12 additions and 11 deletions
+1
View File
@@ -46,6 +46,7 @@ export function inviteToFaction(faction) {
}
export function joinFaction(faction) {
if(faction.isMember) return;
faction.isMember = true;
Player.factions.push(faction.name);
const factionInfo = faction.getInfo();