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();