From 11525673ba352cdbe0edbafd06c3749d39151ed8 Mon Sep 17 00:00:00 2001 From: Fildrance Date: Sun, 12 Oct 2025 20:54:08 +0300 Subject: [PATCH] Use PredictedQueueDel in SharedDestructibleSystem.DestroyEntity (#40856) feat: predict queuedel in SharedDestructibleSystem.DestroyEntity Co-authored-by: pa.pecherskij --- .../Destructible/SharedDestructibleSystem.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Content.Shared/Destructible/SharedDestructibleSystem.cs b/Content.Shared/Destructible/SharedDestructibleSystem.cs index 572ed9d560..f37561e0d8 100644 --- a/Content.Shared/Destructible/SharedDestructibleSystem.cs +++ b/Content.Shared/Destructible/SharedDestructibleSystem.cs @@ -1,9 +1,9 @@ -namespace Content.Shared.Destructible; +namespace Content.Shared.Destructible; public abstract class SharedDestructibleSystem : EntitySystem { /// - /// Force entity to be destroyed and deleted. + /// Force entity to be destroyed and deleted. /// public bool DestroyEntity(EntityUid owner) { @@ -15,12 +15,12 @@ public abstract class SharedDestructibleSystem : EntitySystem var eventArgs = new DestructionEventArgs(); RaiseLocalEvent(owner, eventArgs); - QueueDel(owner); + PredictedQueueDel(owner); return true; } /// - /// Force entity to break. + /// Force entity to break. /// public void BreakEntity(EntityUid owner) { @@ -30,7 +30,7 @@ public abstract class SharedDestructibleSystem : EntitySystem } /// -/// Raised before an entity is about to be destroyed and deleted +/// Raised before an entity is about to be destroyed and deleted /// public sealed class DestructionAttemptEvent : CancellableEntityEventArgs { @@ -38,7 +38,7 @@ public sealed class DestructionAttemptEvent : CancellableEntityEventArgs } /// -/// Raised when entity is destroyed and about to be deleted. +/// Raised when entity is destroyed and about to be deleted. /// public sealed class DestructionEventArgs : EntityEventArgs { @@ -46,7 +46,7 @@ public sealed class DestructionEventArgs : EntityEventArgs } /// -/// Raised when entity was heavy damage and about to break. +/// Raised when entity was heavy damage and about to break. /// public sealed class BreakageEventArgs : EntityEventArgs { -- 2.51.2