Fixed bug with faction invitations not getting deleted

This commit is contained in:
Daniel Ferri
2021-05-06 21:49:20 +02:00
committed by hydroflame
parent 68eb68a89e
commit 62e2f0582a
3 changed files with 9 additions and 8 deletions
-2
View File
@@ -36,8 +36,6 @@ function factionInvitationBoxCreate(faction) {
var i = Player.factionInvitations.findIndex((facName)=>{return facName === faction.name});
if (i === -1) {
console.error("Could not find faction in Player.factionInvitations");
} else {
Player.factionInvitations.splice(i, 1);
}
joinFaction(faction);
factionInvitationBoxClose();