From f85c918ee634f49d8bcf5d042a88e32cff9cb81d Mon Sep 17 00:00:00 2001 From: HellCatten <126400932+HellCatten@users.noreply.github.com> Date: Sat, 24 Aug 2024 22:12:15 +0300 Subject: [PATCH] code change after review --- Content.Shared/Storage/EntitySystems/MagnetPickupSystem.cs | 3 ++- .../_white/storage/components/magnet-pickup-component.ftl | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Shared/Storage/EntitySystems/MagnetPickupSystem.cs b/Content.Shared/Storage/EntitySystems/MagnetPickupSystem.cs index fd95c25f26..a410f601d4 100644 --- a/Content.Shared/Storage/EntitySystems/MagnetPickupSystem.cs +++ b/Content.Shared/Storage/EntitySystems/MagnetPickupSystem.cs @@ -54,7 +54,8 @@ public override void Update(float frameTime) while (query.MoveNext(out var uid, out var comp, out var storage, out var xform, out var meta)) { - TryComp(uid, out var toggle); + if (!TryComp(uid, out var toggle)) + continue; if (!_itemToggle.IsActivated(uid, toggle)) continue; diff --git a/Resources/Locale/ru-RU/_white/storage/components/magnet-pickup-component.ftl b/Resources/Locale/ru-RU/_white/storage/components/magnet-pickup-component.ftl index 908df6033c..9a58288220 100644 --- a/Resources/Locale/ru-RU/_white/storage/components/magnet-pickup-component.ftl +++ b/Resources/Locale/ru-RU/_white/storage/components/magnet-pickup-component.ftl @@ -1,5 +1,4 @@ -## Used when examining the MagnetPickupComponent -## Выводится при осмотре предмета с MagnetPickupCompontent +## Выводится при осмотре предмета с MagnetPickupCompontent comp-magnet-pickup-examined-on = Магнит сейчас [color=darkgreen]включен[/color]. comp-magnet-pickup-examined-off = Магнит сейчас [color=darkred]выключен[/color].