feat(bridge): protocol 13 with RunicNPC, edge → main (runicnpc 9e step 3, merge 2 of 3) #29

Merged
whitlocktech merged 32 commits from edge into main 2026-10-09 02:20:28 -05:00
Showing only changes of commit d1d4a00d1d - Show all commits

View File

@@ -292,7 +292,9 @@ namespace Oxide.Plugins
int entered = 0;
foreach (BasePlayer player in BasePlayer.activePlayerList.ToArray())
// A copy: entering a player can eject or kill them, which changes the live list.
// `activePlayerList` is Facepunch's ListHashSet, which has no ToArray.
foreach (BasePlayer player in new List<BasePlayer>(BasePlayer.activePlayerList))
{
if (player == null || player.IsNpc || player.transform == null)
continue;