From 3758d95e0b37b75d7c55fba8f6c83bb1606ffa97 Mon Sep 17 00:00:00 2001 From: Chris <2648373+QuiCM@users.noreply.github.com> Date: Sun, 17 May 2020 16:11:43 +0930 Subject: [PATCH] Fixes type initialization error on Platform --- .../Callbacks/PlatformConstructorCallback.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShock.Modifications.Platform/Callbacks/PlatformConstructorCallback.cs b/TShock.Modifications.Platform/Callbacks/PlatformConstructorCallback.cs index 51c6729a3..e373b45cd 100644 --- a/TShock.Modifications.Platform/Callbacks/PlatformConstructorCallback.cs +++ b/TShock.Modifications.Platform/Callbacks/PlatformConstructorCallback.cs @@ -12,10 +12,10 @@ internal static void ChangePlatform(ref ReLogic.OS.Platform platform) switch (Environment.OSVersion.Platform) { case PlatformID.Unix: - type = typeof(ReLogic.OS.Platform).Assembly.GetType(IsRunningOnMac() ? "ReLogic.OS.OsxPlatform" : "ReLogic.OS.LinuxPlatform"); + type = typeof(ReLogic.OS.Platform).Assembly.GetType(IsRunningOnMac() ? "ReLogic.OS.OSX.OsxPlatform" : "ReLogic.OS.Linux.LinuxPlatform"); break; case PlatformID.Win32NT: - type = typeof(ReLogic.OS.Platform).Assembly.GetType("ReLogic.OS.WindowsPlatform"); + type = typeof(ReLogic.OS.Platform).Assembly.GetType("ReLogic.OS.Windows.WindowsPlatform"); break; default: throw new NotSupportedException();