]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix vape use without check if doafter cancelled (#33245)
authorleonidussaks <42278348+leonidussaks@users.noreply.github.com>
Mon, 11 Nov 2024 03:17:03 +0000 (06:17 +0300)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2024 03:17:03 +0000 (21:17 -0600)
vape small fix

Content.Server/Nutrition/EntitySystems/SmokingSystem.Vape.cs

index c3d41cead6d62ad925da8875a29df005644b1f63..26fa5ca3cc8f5b85b92771c2896fb011befd4c10 100644 (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);