Fix inflatable barriers finishing instantly if canceled! (#36937)

Fix
This commit is contained in:
beck-thompson 2025-04-26 13:56:18 -07:00 committed by GitHub
parent d2caa5eae0
commit 65ff527f13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View 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))