Remove some client IEnumerables (#16501)

This commit is contained in:
metalgearsloth
2023-05-16 22:55:22 +10:00
committed by GitHub
parent e91fc652a3
commit 64bb57cdef
6 changed files with 30 additions and 32 deletions

View File

@@ -23,9 +23,10 @@ public sealed class DamageContactsSystem : EntitySystem
{
base.Update(frameTime);
foreach (var damaged in EntityQuery<DamagedByContactComponent>())
var query = EntityQueryEnumerator<DamagedByContactComponent>();
while (query.MoveNext(out var ent, out var damaged))
{
var ent = damaged.Owner;
if (_timing.CurTime < damaged.NextSecond)
continue;
damaged.NextSecond = _timing.CurTime + TimeSpan.FromSeconds(1);