Mind ecs (#14412)
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Content.Server.Mind
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<RoundRestartCleanupEvent>(Reset);
|
||||
SubscribeLocalEvent<MindComponent, MindAddedMessage>(OnMindAdded);
|
||||
SubscribeLocalEvent<MindContainerComponent, MindAddedMessage>(OnMindAdded);
|
||||
}
|
||||
|
||||
void Reset(RoundRestartCleanupEvent ev)
|
||||
@@ -28,7 +28,7 @@ namespace Content.Server.Mind
|
||||
AllMinds.Clear();
|
||||
}
|
||||
|
||||
void OnMindAdded(EntityUid uid, MindComponent mc, MindAddedMessage args)
|
||||
void OnMindAdded(EntityUid uid, MindContainerComponent mc, MindAddedMessage args)
|
||||
{
|
||||
var mind = mc.Mind;
|
||||
if (mind != null)
|
||||
|
||||
Reference in New Issue
Block a user