Fix queued deletion check (singulo loosing at beyond PA 1 but only on live servers) (#28906)
Fix queued deletion check
This commit is contained in:
@@ -116,10 +116,12 @@ public sealed class EventHorizonSystem : SharedEventHorizonSystem
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void ConsumeEntity(EntityUid hungry, EntityUid morsel, EventHorizonComponent eventHorizon, BaseContainer? outerContainer = null)
|
public void ConsumeEntity(EntityUid hungry, EntityUid morsel, EventHorizonComponent eventHorizon, BaseContainer? outerContainer = null)
|
||||||
{
|
{
|
||||||
if (!EntityManager.IsQueuedForDeletion(morsel) // I saw it log twice a few times for some reason?
|
if (EntityManager.IsQueuedForDeletion(morsel)) // already handled, and we're substepping
|
||||||
&& (HasComp<MindContainerComponent>(morsel)
|
return;
|
||||||
|
|
||||||
|
if (HasComp<MindContainerComponent>(morsel)
|
||||||
|| _tagSystem.HasTag(morsel, "HighRiskItem")
|
|| _tagSystem.HasTag(morsel, "HighRiskItem")
|
||||||
|| HasComp<ContainmentFieldGeneratorComponent>(morsel)))
|
|| HasComp<ContainmentFieldGeneratorComponent>(morsel))
|
||||||
{
|
{
|
||||||
_adminLogger.Add(LogType.EntityDelete, LogImpact.Extreme, $"{ToPrettyString(morsel)} entered the event horizon of {ToPrettyString(hungry)} and was deleted");
|
_adminLogger.Add(LogType.EntityDelete, LogImpact.Extreme, $"{ToPrettyString(morsel)} entered the event horizon of {ToPrettyString(hungry)} and was deleted");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user