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].