]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixes the eye protection requirement of welding tools being inverted (#24106)
authordeathride58 <deathride58@users.noreply.github.com>
Mon, 15 Jan 2024 07:47:00 +0000 (02:47 -0500)
committerGitHub <noreply@github.com>
Mon, 15 Jan 2024 07:47:00 +0000 (00:47 -0700)
After a power outage and a whole hour of fixing a broken .git: fixes welding tools having inverted toggle states for eye protection requirements

Content.Server/Eye/Blinding/EyeProtection/EyeProtectionSystem.cs

index 2fae9dd3c326879fa01675136584cfc4f1168a5c..24ee2b71541cd9a0d58f1da05677468938a9a2d8 100644 (file)
@@ -60,7 +60,7 @@ namespace Content.Server.Eye.Blinding.EyeProtection
         }
         private void OnWelderToggled(EntityUid uid, RequiresEyeProtectionComponent component, ItemToggledEvent args)
         {
-            component.Toggled = _itemToggle.IsActivated(uid);
+            component.Toggled = args.Activated;
         }
     }
 }