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

View File

@@ -50,7 +50,7 @@ public sealed partial class DisassembleOnAltVerbSystem : EntitySystem
private void OnDisassembleDoAfter(Entity<DisassembleOnAltVerbComponent> entity, ref DisassembleDoAfterEvent args) 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; return;
if (TrySpawnNextTo(entity.Comp.PrototypeToSpawn, entity.Owner, out var spawnedEnt)) if (TrySpawnNextTo(entity.Comp.PrototypeToSpawn, entity.Owner, out var spawnedEnt))