fix chameleon menu (#18028)
This commit is contained in:
@@ -21,13 +21,13 @@ public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem
|
|||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
SubscribeLocalEvent<ChameleonClothingComponent, ComponentInit>(OnInit);
|
SubscribeLocalEvent<ChameleonClothingComponent, MapInitEvent>(OnMapInit);
|
||||||
SubscribeLocalEvent<ChameleonClothingComponent, ComponentGetState>(GetState);
|
SubscribeLocalEvent<ChameleonClothingComponent, ComponentGetState>(GetState);
|
||||||
SubscribeLocalEvent<ChameleonClothingComponent, GetVerbsEvent<InteractionVerb>>(OnVerb);
|
SubscribeLocalEvent<ChameleonClothingComponent, GetVerbsEvent<InteractionVerb>>(OnVerb);
|
||||||
SubscribeLocalEvent<ChameleonClothingComponent, ChameleonPrototypeSelectedMessage>(OnSelected);
|
SubscribeLocalEvent<ChameleonClothingComponent, ChameleonPrototypeSelectedMessage>(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);
|
SetSelectedPrototype(uid, component.SelectedId, true, component);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user