]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fulton fixes (#20102)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 13 Sep 2023 08:01:22 +0000 (18:01 +1000)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2023 08:01:22 +0000 (18:01 +1000)
Content.Server/Salvage/FultonSystem.cs
Content.Shared/Salvage/Fulton/SharedFultonSystem.cs

index 23145cc1a8e03319a877d04cfc61d46215d96c56..60e1d3b47251d9845546b7b0eb1898be1f3d2fcc 100644 (file)
@@ -66,7 +66,7 @@ public sealed class FultonSystem : SharedFultonSystem
             RaiseNetworkEvent(new FultonAnimationMessage()
             {
                 Entity = GetNetEntity(uid, metadata),
-                Coordinates = GetNetCoordinates(oldCoords, metadata),
+                Coordinates = GetNetCoordinates(oldCoords),
             });
         }
 
index 3ddd42f2b7d9c396ec9f6a72779d55307598382f..6814bbb3c76cf8f863238e3154fcccbe2039fc1f 100644 (file)
@@ -60,6 +60,9 @@ public abstract partial class SharedFultonSystem : EntitySystem
 
     private void OnFultonedGetVerbs(EntityUid uid, FultonedComponent component, GetVerbsEvent<InteractionVerb> args)
     {
+        if (!args.CanAccess || !args.CanInteract)
+            return;
+
         args.Verbs.Add(new InteractionVerb()
         {
             Text = Loc.GetString("fulton-remove"),