Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user