]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix chasmsystem resolve error (#40281)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Thu, 11 Sep 2025 10:00:55 +0000 (12:00 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 10:00:55 +0000 (03:00 -0700)
Content.Shared/Weapons/Misc/SharedGrapplingGunSystem.cs

index af4a376bd0171341ad40603104c795422e5abd31..1a0a31d4b1ee9d6b02ee594d6d1c3d6c72e725cd 100644 (file)
@@ -118,7 +118,7 @@ public abstract class SharedGrapplingGunSystem : EntitySystem
 
     private void OnGunActivate(EntityUid uid, GrapplingGunComponent component, ActivateInWorldEvent args)
     {
-        if (!Timing.IsFirstTimePredicted || args.Handled || !args.Complex || component.Projectile is not {} projectile)
+        if (!Timing.IsFirstTimePredicted || args.Handled || !args.Complex || component.Projectile is not { } projectile)
             return;
 
         _audio.PlayPredicted(component.CycleSound, uid, args.User);
@@ -129,7 +129,7 @@ public abstract class SharedGrapplingGunSystem : EntitySystem
 
         component.Projectile = null;
         SetReeling(uid, component, false, args.User);
-        _gun.ChangeBasicEntityAmmoCount(uid,  1);
+        _gun.ChangeBasicEntityAmmoCount(uid, 1);
 
         args.Handled = true;
     }
@@ -211,7 +211,7 @@ public abstract class SharedGrapplingGunSystem : EntitySystem
     /// <returns>True if hooked, false otherwise.</returns>
     public bool IsEntityHooked(Entity<JointRelayTargetComponent?> entity)
     {
-        if (!Resolve(entity, ref entity.Comp))
+        if (!Resolve(entity, ref entity.Comp, false))
             return false;
 
         foreach (var uid in entity.Comp.Relayed)