diff --git a/EXILED/Exiled.Events/Patches/Fixes/VoiceChatTpsFix.cs b/EXILED/Exiled.Events/Patches/Fixes/VoiceChatTpsFix.cs deleted file mode 100644 index 06e007951..000000000 --- a/EXILED/Exiled.Events/Patches/Fixes/VoiceChatTpsFix.cs +++ /dev/null @@ -1,43 +0,0 @@ -// ----------------------------------------------------------------------- -// -// Copyright (c) Exiled Team. All rights reserved. -// Licensed under the CC BY-SA 3.0 license. -// -// ----------------------------------------------------------------------- - -namespace Exiled.Events.Patches.Fixes -{ - using System.Collections.Generic; - using System.Configuration; - using System.Reflection.Emit; - - using API.Features.Pools; - - using HarmonyLib; - - using VoiceChat.Networking; - - using static HarmonyLib.AccessTools; - - /// - /// Fixes method. - /// - [HarmonyPatch(typeof(VoiceTransceiver), nameof(VoiceTransceiver.ServerReceiveMessage))] - internal static class VoiceChatTpsFix - { - private static IEnumerable Transpiler(IEnumerable instructions, ILGenerator generator) - { - List newInstructions = ListPool.Pool.Get(instructions); - int offset = -1; - int index = newInstructions.FindIndex(instruction => instruction.opcode == OpCodes.Newarr) + offset; - - // set new array size to 480 - newInstructions[index].operand = 480; - - for (int z = 0; z < newInstructions.Count; z++) - yield return newInstructions[z]; - - ListPool.Pool.Return(newInstructions); - } - } -} diff --git a/EXILED/Exiled.Loader/AutoUpdateFiles.cs b/EXILED/Exiled.Loader/AutoUpdateFiles.cs index f8997af0b..c083b2eb6 100644 --- a/EXILED/Exiled.Loader/AutoUpdateFiles.cs +++ b/EXILED/Exiled.Loader/AutoUpdateFiles.cs @@ -17,6 +17,6 @@ public static class AutoUpdateFiles /// /// Gets which SCP: SL version generated Exiled. /// - public static readonly Version RequiredSCPSLVersion = new(13, 6, 0, 9); + public static readonly Version RequiredSCPSLVersion = new(13, 5, 0, 1); } } \ No newline at end of file