Ported most/all player iterations

This commit is contained in:
BasicallyIAmFox committed 2024-05-02 23:04:09 +05:00
1 parent ae69405e71
commit bb5148e2cf
73 files changed
+280 -423

No files matched your search

+3 -3
View File
@@ -101,12 +101,12 @@ namespace CalamityMod.Systems
// Attempt to summon lab critters manually since they refuse to exist when using vanilla's spawn methods.
// This needs to check all players since the method only runs server-side.
for (int i = 0; i < Main.maxPlayers; i++)
foreach (Player p in Main.ActivePlayers)
{
if (!Main.player[i].active || Main.player[i].dead)
if (p.dead)
continue;
CalamityGlobalNPC.AttemptToSpawnLabCritters(Main.player[i]);
CalamityGlobalNPC.AttemptToSpawnLabCritters(p);
}
// Make the cultist countdown happen much more quickly.