Fix ghosts having empty names under certain conditions.

Fixes #4731
This commit is contained in:
Vera Aguilera Puerto
2021-10-06 11:56:16 +02:00
parent 94a29978b5
commit 1f72435263
4 changed files with 18 additions and 7 deletions

View File

@@ -7,11 +7,6 @@ namespace Content.Shared.Ghost
{
public abstract class SharedGhostSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
}
public void SetCanReturnToBody(SharedGhostComponent component, bool canReturn)
{
if (component.CanReturnToBody == canReturn)