]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Ingestion Bugfixes (#39436)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Thu, 7 Aug 2025 00:19:26 +0000 (17:19 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Aug 2025 00:19:26 +0000 (02:19 +0200)
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/Nutrition/EntitySystems/IngestionSystem.cs
Content.Shared/Nutrition/EntitySystems/OpenableSystem.cs

index cdd366ba507f5a54192b2d6879822b14b3a1872a..3ac2df6508c90c57e01c56f89a5740ad27fdc41e 100644 (file)
@@ -249,17 +249,17 @@ public sealed partial class IngestionSystem : EntitySystem
         // Can we digest the specific item we're trying to eat?
         if (!IsDigestibleBy(args.Ingested, stomachs))
         {
+            if (!args.Ingest)
+                return;
+
             if (forceFed)
-            {
                 _popup.PopupClient(Loc.GetString("ingestion-cant-digest-other", ("target", entity), ("entity", food)), entity, args.User);
-            }
             else
                 _popup.PopupClient(Loc.GetString("ingestion-cant-digest", ("entity", food)), entity, entity);
 
             return;
         }
 
-
         // Exit early if we're just trying to get verbs
         if (!args.Ingest)
         {
index ab462557d96da2ec6edd88f3e30a2c4347c2f18a..588875d5533a9210bbe1c8a8d48fe88156b9001c 100644 (file)
@@ -121,7 +121,7 @@ public sealed partial class OpenableSystem : EntitySystem
 
     private void OnTransferAttempt(Entity<OpenableComponent> ent, ref SolutionTransferAttemptEvent args)
     {
-        if (ent.Comp.Opened)
+        if (!ent.Comp.Opened)
             args.Cancel(Loc.GetString(ent.Comp.ClosedPopup, ("owner", ent.Owner)));
     }