]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix powered lights electrocuting you despite having insulated gloves V2 (#36686)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Fri, 18 Apr 2025 12:26:47 +0000 (14:26 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 12:26:47 +0000 (22:26 +1000)
fix light insulation

Content.Server/Electrocution/ElectrocutionSystem.cs

index c7adb311d321cbed1ce998175d50a5395aa5bdbb..0059a8b42729c144aa0d7242569dcc583a5bbe4e 100644 (file)
@@ -188,7 +188,7 @@ public sealed class ElectrocutionSystem : SharedElectrocutionSystem
         if (_meleeWeapon.GetDamage(args.Used, args.User).Empty)
             return;
 
-        DoCommonElectrocution(args.User, uid, component.UnarmedHitShock, component.UnarmedHitStun, false);
+        TryDoElectrocution(args.User, uid, component.UnarmedHitShock, component.UnarmedHitStun, false);
     }
 
     private void OnElectrifiedInteractUsing(EntityUid uid, ElectrifiedComponent electrified, InteractUsingEvent args)