fix: Message server now can see new user (#611)

This commit is contained in:
Spatison
2024-08-12 13:29:49 +03:00
committed by GitHub
parent 20b728448f
commit 8579ab7602
5 changed files with 94 additions and 74 deletions

View File

@@ -29,6 +29,18 @@ public sealed class SingletonDeviceNetServerSystem : EntitySystem
return Resolve(serverId, ref serverComponent) && serverComponent.Active;
}
/// <summary>
/// Set server active. WD EDIT
/// </summary>
public bool SetServerActive(EntityUid serverId, bool active, SingletonDeviceNetServerComponent? serverComponent = default)
{
if (!Resolve(serverId, ref serverComponent))
return false;
serverComponent.Active = active;
return true;
}
/// <summary>
/// Returns the address of the currently active server for the given station id if there is one.<br/>
/// What kind of server you're trying to get the active instance of is determined by the component type parameter TComp.<br/>