From 51059ac9f5dc478ef2bb9877df6230185a455a9a Mon Sep 17 00:00:00 2001 From: Schrodinger71 Date: Sun, 21 Jul 2024 12:48:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20TranslatorSystem=20?= =?UTF-8?q?=D0=9C=D0=B5=D0=BD=D1=8F=D0=B5=D0=BC=20SetPowerCellDrawEnabled?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=BE=D0=B4=20SetDrawEnabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/ADT/Language/TranslatorSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/ADT/Language/TranslatorSystem.cs b/Content.Server/ADT/Language/TranslatorSystem.cs index e19b2b29d71..7e3b8cfd0a7 100644 --- a/Content.Server/ADT/Language/TranslatorSystem.cs +++ b/Content.Server/ADT/Language/TranslatorSystem.cs @@ -162,7 +162,7 @@ private void OnTranslatorToggle(EntityUid translator, HandheldTranslatorComponen isEnabled &= hasPower; UpdateBoundIntrinsicComp(component, intrinsic, isEnabled); component.Enabled = isEnabled; - _powerCell.SetPowerCellDrawEnabled(translator, isEnabled); + _powerCell.SetDrawEnabled(translator, isEnabled); _language.EnsureValidLanguage(holder); UpdatedLanguages(holder); @@ -171,7 +171,7 @@ private void OnTranslatorToggle(EntityUid translator, HandheldTranslatorComponen { // This is a standalone translator (e.g. lying on the ground). Simply toggle its state. component.Enabled = !component.Enabled && hasPower; - _powerCell.SetPowerCellDrawEnabled(translator, !component.Enabled && hasPower); + _powerCell.SetDrawEnabled(translator, !component.Enabled && hasPower); } OnAppearanceChange(translator, component); @@ -188,7 +188,7 @@ private void OnTranslatorToggle(EntityUid translator, HandheldTranslatorComponen private void OnPowerCellSlotEmpty(EntityUid translator, HandheldTranslatorComponent component, PowerCellSlotEmptyEvent args) { component.Enabled = false; - _powerCell.SetPowerCellDrawEnabled(translator, false); + _powerCell.SetDrawEnabled(translator, false); OnAppearanceChange(translator, component); if (Transform(translator).ParentUid is { Valid: true } holder && EntityManager.HasComponent(holder))