Fix ghost respawn bug (#17511)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user