From d09ff7aba16971ba28ff45d36255c7a9ef56225c Mon Sep 17 00:00:00 2001 From: DiFFoZ <48765566+DiFFoZ@users.noreply.github.com> Date: Tue, 17 Nov 2020 19:06:29 +0700 Subject: [PATCH] Update OpenMod.Unturned to latest, fixes #24. --- Dummy/Dummy.csproj | 4 +++- Dummy/NetTransports/NullTransportConnection.cs | 2 +- Dummy/ServiceConfigurator.cs | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dummy/Dummy.csproj b/Dummy/Dummy.csproj index 3d88139..e96ef24 100644 --- a/Dummy/Dummy.csproj +++ b/Dummy/Dummy.csproj @@ -39,8 +39,10 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + + + \ No newline at end of file diff --git a/Dummy/NetTransports/NullTransportConnection.cs b/Dummy/NetTransports/NullTransportConnection.cs index 22648e1..5ff77ae 100644 --- a/Dummy/NetTransports/NullTransportConnection.cs +++ b/Dummy/NetTransports/NullTransportConnection.cs @@ -40,7 +40,7 @@ public bool TryGetPort(out ushort port) public IPAddress GetAddress() { - return new IPAddress(0); + return null; } public string GetAddressString(bool withPort) diff --git a/Dummy/ServiceConfigurator.cs b/Dummy/ServiceConfigurator.cs index ca0873b..e60c282 100644 --- a/Dummy/ServiceConfigurator.cs +++ b/Dummy/ServiceConfigurator.cs @@ -12,8 +12,6 @@ public class ServiceConfigurator : IServiceConfigurator { public void ConfigureServices(IOpenModServiceConfigurationContext openModStartupContext, IServiceCollection serviceCollection) { - serviceCollection.AddSingleton(); - serviceCollection.Configure(options => options.AddUserProvider()); serviceCollection.Configure(options => {