mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 12:32:55 +00:00
saving ip (#230)
This commit is contained in:
parent
d7de691807
commit
1d4c598958
@ -161,6 +161,14 @@ namespace QSB
|
|||||||
QSBNetworkServer.SpawnWithClientAuthority(Instantiate(_probePrefab), connection);
|
QSBNetworkServer.SpawnWithClientAuthority(Instantiate(_probePrefab), connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void OnStartClient(QSBNetworkClient _)
|
||||||
|
{
|
||||||
|
DebugLog.DebugWrite($"Setting defaultServerIP to {networkAddress}");
|
||||||
|
var config = QSBCore.Helper.Config;
|
||||||
|
config.SetSettingsValue("defaultServerIP", networkAddress);
|
||||||
|
QSBCore.Helper.Storage.Save(config, Constants.ModConfigFileName);
|
||||||
|
}
|
||||||
|
|
||||||
public override void OnClientConnect(QSBNetworkConnection connection) // Called on the client when connecting to a server
|
public override void OnClientConnect(QSBNetworkConnection connection) // Called on the client when connecting to a server
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite("OnClientConnect", MessageType.Info);
|
DebugLog.DebugWrite("OnClientConnect", MessageType.Info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user