]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix forced vaping checking if the user's mouth is blocked instead of the target's...
authorTayrtahn <tayrtahn@gmail.com>
Thu, 8 Jan 2026 19:09:23 +0000 (14:09 -0500)
committerGitHub <noreply@github.com>
Thu, 8 Jan 2026 19:09:23 +0000 (19:09 +0000)
Swap user and target arguments of IngestionSystem.HasMouthAvailable call.

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

index 871a15ee73c4ab370c140d8298ddcca617dd48a2..547801c7aecb52adfbaab642b5de529d3f71ea0b 100644 (file)
@@ -42,7 +42,7 @@ namespace Content.Server.Nutrition.EntitySystems
             if (!args.CanReach
                 || !_solutionContainerSystem.TryGetRefillableSolution(entity.Owner, out _, out var solution)
                 || !HasComp<BloodstreamComponent>(args.Target)
-                || !_ingestion.HasMouthAvailable(args.Target.Value, args.User)
+                || !_ingestion.HasMouthAvailable(args.User, args.Target.Value)
                 )
             {
                 return;