]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix inflatable barriers finishing instantly if canceled! (#36937)
authorbeck-thompson <107373427+beck-thompson@users.noreply.github.com>
Sat, 26 Apr 2025 20:56:18 +0000 (13:56 -0700)
committerGitHub <noreply@github.com>
Sat, 26 Apr 2025 20:56:18 +0000 (16:56 -0400)
Fix

Content.Shared/Engineering/Systems/DisassembleOnAltVerbSystem.cs

index f64f2465dda14ed05acd7a1fc45f5f88ce46bd64..150688d3d4c3e818890022ed493f2ee5b0c2ca1b 100644 (file)
@@ -50,7 +50,7 @@ public sealed partial class DisassembleOnAltVerbSystem : EntitySystem
 
     private void OnDisassembleDoAfter(Entity<DisassembleOnAltVerbComponent> entity, ref DisassembleDoAfterEvent args)
     {
-        if (!_net.IsServer) // This is odd but it works :)
+        if (!_net.IsServer || args.Cancelled) // This is odd but it works :)
             return;
 
         if (TrySpawnNextTo(entity.Comp.PrototypeToSpawn, entity.Owner, out var spawnedEnt))