Use PredictedQueueDel in SharedDestructibleSystem.DestroyEntity (#40856)

feat: predict queuedel in SharedDestructibleSystem.DestroyEntity

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
This commit is contained in:
Fildrance
2025-10-12 20:54:08 +03:00
committed by GitHub
parent a803bcca46
commit 11525673ba

View File

@@ -1,4 +1,4 @@
namespace Content.Shared.Destructible; namespace Content.Shared.Destructible;
public abstract class SharedDestructibleSystem : EntitySystem public abstract class SharedDestructibleSystem : EntitySystem
{ {
@@ -15,7 +15,7 @@ public abstract class SharedDestructibleSystem : EntitySystem
var eventArgs = new DestructionEventArgs(); var eventArgs = new DestructionEventArgs();
RaiseLocalEvent(owner, eventArgs); RaiseLocalEvent(owner, eventArgs);
QueueDel(owner); PredictedQueueDel(owner);
return true; return true;
} }