Skip to content

Commit

Permalink
Update EXILED/Exiled.API/Features/Npc.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Rouse <123724383+ALEXWARELLC@users.noreply.github.com>
  • Loading branch information
NotZer0Two and iamalexrouse authored Aug 22, 2024
1 parent b0416c7 commit 4ec2bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXILED/Exiled.API/Features/Npc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static Npc Spawn(string name, RoleTypeId role, int id = 0, string userId

if (!RecyclablePlayerId.FreeIds.Contains(id) && RecyclablePlayerId._autoIncrement >= id)
{
Log.Warn($"{Assembly.GetCallingAssembly().GetName().Name} tried to spawn an NPC with a duplicate PlayerID. Using auto-incremented ID instead to avoid issues.");
Log.Warn($"{Assembly.GetCallingAssembly().GetName().Name} tried to spawn an NPC with a duplicate PlayerID. Using auto-incremented ID instead to avoid an ID clash.");
id = new RecyclablePlayerId(false).Value;
}

Expand Down

0 comments on commit 4ec2bab

Please sign in to comment.