From e9d3d86d30e2cfd0562b9b536de58b84f349274f Mon Sep 17 00:00:00 2001 From: Slava0135 <40753025+Slava0135@users.noreply.github.com> Date: Sun, 16 Jul 2023 10:04:51 +0300 Subject: [PATCH] fix chameleon menu (#18028) --- Content.Server/Clothing/Systems/ChameleonClothingSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs b/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs index d9aa0066a7..10fadbbba1 100644 --- a/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs +++ b/Content.Server/Clothing/Systems/ChameleonClothingSystem.cs @@ -21,13 +21,13 @@ public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem public override void Initialize() { base.Initialize(); - SubscribeLocalEvent(OnInit); + SubscribeLocalEvent(OnMapInit); SubscribeLocalEvent(GetState); SubscribeLocalEvent>(OnVerb); SubscribeLocalEvent(OnSelected); } - private void OnInit(EntityUid uid, ChameleonClothingComponent component, ComponentInit args) + private void OnMapInit(EntityUid uid, ChameleonClothingComponent component, MapInitEvent args) { SetSelectedPrototype(uid, component.SelectedId, true, component); }