fix: Message server now can see new user (#611)
This commit is contained in:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user