Clean up all missing EntitySystem proxy method uses (#38353)

This commit is contained in:
Tayrtahn
2025-06-26 19:50:49 -04:00
committed by GitHub
parent 73df3b1593
commit 75db49f9c0
185 changed files with 418 additions and 418 deletions

View File

@@ -137,7 +137,7 @@ public sealed class EventHorizonSystem : SharedEventHorizonSystem
_adminLogger.Add(LogType.EntityDelete, LogImpact.High, $"{ToPrettyString(morsel):player} entered the event horizon of {ToPrettyString(hungry)} and was deleted");
}
EntityManager.QueueDeleteEntity(morsel);
QueueDel(morsel);
var evSelf = new EntityConsumedByEventHorizonEvent(morsel, hungry, eventHorizon, outerContainer);
var evEaten = new EventHorizonConsumedEntityEvent(morsel, hungry, eventHorizon, outerContainer);
RaiseLocalEvent(hungry, ref evSelf);
@@ -460,14 +460,14 @@ public sealed class EventHorizonSystem : SharedEventHorizonSystem
private void OnEventHorizonContained(EventHorizonContainedEvent args)
{
var uid = args.Entity;
if (!EntityManager.EntityExists(uid))
if (!Exists(uid))
return;
var comp = args.EventHorizon;
if (comp.BeingConsumedByAnotherEventHorizon)
return;
var containerEntity = args.Args.Container.Owner;
if (!EntityManager.EntityExists(containerEntity))
if (!Exists(containerEntity))
return;
if (AttemptConsumeEntity(uid, containerEntity, comp))
return; // If we consume the entity we also consume everything in the containers it has.