Fix ghost respawn bug (#17511)

This commit is contained in:
Leon Friedrich
2023-06-21 13:04:07 +12:00
committed by GitHub
parent 1e9d2e388b
commit 1dde5f39ab
11 changed files with 139 additions and 104 deletions

View File

@@ -29,6 +29,14 @@ namespace Content.Shared.Ghost
args.Cancel();
}
public void SetCanReturnToBody(EntityUid uid, bool value, SharedGhostComponent? component = null)
{
if (!Resolve(uid, ref component))
return;
component.CanReturnToBody = value;
}
public void SetCanReturnToBody(SharedGhostComponent component, bool value)
{
component.CanReturnToBody = value;