Fix vape use without check if doafter cancelled (#33245)

vape small fix
This commit is contained in:
leonidussaks
2024-11-11 06:17:03 +03:00
committed by GitHub
parent 9b7200607b
commit 21979a7b5f

View File

@@ -122,8 +122,7 @@ namespace Content.Server.Nutrition.EntitySystems
private void OnVapeDoAfter(Entity<VapeComponent> entity, ref VapeDoAfterEvent args)
{
if (args.Handled
|| args.Args.Target == null)
if (args.Cancelled || args.Handled || args.Args.Target == null)
return;
var environment = _atmos.GetContainingMixture(args.Args.Target.Value, true, true);