Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion EXILED/Exiled.Events/Patches/Events/Server/Reporting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new(OpCodes.Starg_S, 2),
});

offset = -2;
offset = -11;
index = newInstructions.FindLastIndex(
instruction => instruction.StoresField(Field(typeof(CheaterReport), nameof(CheaterReport._lastReport)))) + offset;

Expand Down
12 changes: 11 additions & 1 deletion EXILED/Exiled.Loader/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,17 @@ public IEnumerator<float> Run(Assembly[] dependencies = null)
GameCore.Version.BackwardCompatibility,
GameCore.Version.BackwardRevision))
{
ServerConsole.AddLog($"Exiled is outdated, a new version will be installed automatically as soon as it's available.\nSCP:SL: {GameCore.Version.VersionString} Exiled Supported Version: {AutoUpdateFiles.RequiredSCPSLVersion}", ConsoleColor.DarkRed);
string messageText = new Version(
GameCore.Version.Major,
GameCore.Version.Minor,
GameCore.Version.Revision) < new Version(
AutoUpdateFiles.RequiredSCPSLVersion.Major,
AutoUpdateFiles.RequiredSCPSLVersion.Minor,
AutoUpdateFiles.RequiredSCPSLVersion.Revision)
? "SCP: SL is outdated. Update SCP: SL Dedicated Server to required version or downgrade Exiled."
: "Exiled is outdated, a new version will be installed automatically as soon as it's available.";

ServerConsole.AddLog($"{messageText}\nSCP:SL version: {GameCore.Version.VersionString} Exiled Supported Version: {AutoUpdateFiles.RequiredSCPSLVersion}", ConsoleColor.DarkRed);
yield break;
}

Expand Down