Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -66,9 +66,9 @@ public sealed partial class ExplosionSystem
|
||||
if (!_airtightMap.ContainsKey(gridId))
|
||||
_airtightMap[gridId] = new();
|
||||
|
||||
query ??= EntityManager.GetEntityQuery<AirtightComponent>();
|
||||
var damageQuery = EntityManager.GetEntityQuery<DamageableComponent>();
|
||||
var destructibleQuery = EntityManager.GetEntityQuery<DestructibleComponent>();
|
||||
query ??= GetEntityQuery<AirtightComponent>();
|
||||
var damageQuery = GetEntityQuery<DamageableComponent>();
|
||||
var destructibleQuery = GetEntityQuery<DestructibleComponent>();
|
||||
var anchoredEnumerator = _mapSystem.GetAnchoredEntitiesEnumerator(gridId, grid, tile);
|
||||
|
||||
while (anchoredEnumerator.MoveNext(out var uid))
|
||||
@@ -99,7 +99,7 @@ public sealed partial class ExplosionSystem
|
||||
if (!airtight.AirBlocked)
|
||||
return;
|
||||
|
||||
if (!EntityManager.TryGetComponent(uid, out TransformComponent? transform) || !transform.Anchored)
|
||||
if (!TryComp(uid, out TransformComponent? transform) || !transform.Anchored)
|
||||
return;
|
||||
|
||||
if (!TryComp<MapGridComponent>(transform.GridUid, out var grid))
|
||||
|
||||
Reference in New Issue
Block a user