Skip to content

Commit

Permalink
Fixing a small issue if the player is choosing something not ID_DEDIC…
Browse files Browse the repository at this point in the history
…ATED
  • Loading branch information
NotZer0Two committed Aug 22, 2024
1 parent d036355 commit 95f5a96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EXILED/Exiled.API/Features/Npc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public static Npc Spawn(string name, RoleTypeId role, int id = 0, string userId
}
else
{
npc.ReferenceHub.authManager.UserId = userId == string.Empty ? $"Dummy@localhost" : userId;
npc.ReferenceHub.authManager.InstanceMode = ClientInstanceMode.Unverified;
npc.ReferenceHub.authManager._privUserId = userId == string.Empty ? $"Dummy@localhost" : userId;
}
}
catch (Exception e)
Expand Down

0 comments on commit 95f5a96

Please sign in to comment.