mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-11-09 04:24:17 +03:00
Observers now get correct name on observe from lobby
This commit is contained in:
parent
27771a31f0
commit
73d754e2d2
1 changed files with 5 additions and 0 deletions
|
|
@ -630,12 +630,17 @@ namespace Content.Server.GameTicking
|
|||
|
||||
private void _spawnObserver(IPlayerSession session)
|
||||
{
|
||||
var name = _prefsManager
|
||||
.GetPreferences(session.SessionId.Username)
|
||||
.SelectedCharacter.Name;
|
||||
|
||||
_playerJoinGame(session);
|
||||
var data = session.ContentData();
|
||||
data.WipeMind();
|
||||
data.Mind = new Mind(session.SessionId);
|
||||
|
||||
var mob = _spawnObserverMob();
|
||||
mob.Name = name;
|
||||
data.Mind.TransferTo(mob);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue