Joining round as observer greys out return to body button

This commit is contained in:
zumorica
2020-04-17 19:16:42 +02:00
parent 73d754e2d2
commit 01e8e4784b

View File

@@ -6,6 +6,7 @@ using Content.Server.GameObjects;
using Content.Server.GameObjects.Components.Access;
using Content.Server.GameObjects.Components.Markers;
using Content.Server.GameObjects.Components.Mobs;
using Content.Server.GameObjects.Components.Observer;
using Content.Server.GameTicking.GamePresets;
using Content.Server.Interfaces;
using Content.Server.Interfaces.Chat;
@@ -641,6 +642,7 @@ namespace Content.Server.GameTicking
var mob = _spawnObserverMob();
mob.Name = name;
mob.GetComponent<GhostComponent>().CanReturnToBody = false;
data.Mind.TransferTo(mob);
}