diff --git a/AmongUs.props b/AmongUs.props index 4107ca5..eb370e1 100644 --- a/AmongUs.props +++ b/AmongUs.props @@ -1,6 +1,6 @@ - 2021.4.12s + 2021.4.14s $(DefineConstants);STEAM diff --git a/Reactor/CustomStringName.cs b/Reactor/CustomStringName.cs index ba2adc9..14d73be 100644 --- a/Reactor/CustomStringName.cs +++ b/Reactor/CustomStringName.cs @@ -1,8 +1,6 @@ using System.Collections.Generic; using System.Linq; -using System.Reflection; using HarmonyLib; -using Reactor.Extensions; using UnhollowerBaseLib; namespace Reactor @@ -53,15 +51,9 @@ namespace Reactor } } - // [HarmonyPatch(typeof(TranslationController), nameof(TranslationController.GetString), typeof(StringNames), typeof(string), typeof(Il2CppReferenceArray))] - [HarmonyPatch] + [HarmonyPatch(typeof(TranslationController), nameof(TranslationController.GetStringWithDefault))] private static class GetStringOrDefaultPatch { - public static IEnumerable TargetMethods() - { - return typeof(TranslationController).GetMethods(typeof(string), typeof(StringNames), typeof(string), typeof(Il2CppReferenceArray)); - } - public static bool Prefix([HarmonyArgument(0)] StringNames stringId, [HarmonyArgument(2)] Il2CppReferenceArray parts, ref string __result) { var customStringName = (CustomStringName) stringId; diff --git a/Reactor/Networking/Patches/ServerPatches.cs b/Reactor/Networking/Patches/ServerPatches.cs index e52533c..771f545 100644 --- a/Reactor/Networking/Patches/ServerPatches.cs +++ b/Reactor/Networking/Patches/ServerPatches.cs @@ -1,24 +1,15 @@ -using System.Collections.Generic; -using System.Reflection; using HarmonyLib; using Hazel; using InnerNet; -using Reactor.Extensions; using UnityEngine; namespace Reactor.Networking.Patches { internal static class ServerPatches { - // [HarmonyPatch(typeof(InnerNetServer), nameof(InnerNetServer.OnServerConnect))] - [HarmonyPatch] + [HarmonyPatch(typeof(InnerNetServer), nameof(InnerNetServer.OnServerConnect))] public static class HandshakeResponsePatch { - public static IEnumerable TargetMethods() - { - return typeof(InnerNetServer).GetMethods(typeof(void), typeof(NewConnectionEventArgs)); - } - public static void Postfix([HarmonyArgument(0)] NewConnectionEventArgs evt) { var writer = MessageWriter.Get(SendOption.Reliable); diff --git a/build/Program.cs b/build/Program.cs index f67773b..4087495 100644 --- a/build/Program.cs +++ b/build/Program.cs @@ -38,7 +38,7 @@ public sealed class SetupAmongUsTask : AsyncFrostingTask { public const uint AppId = 945360; public const uint DepotId = 945361; - public const ulong ManifestId = 2725166875026424465; // 2021.4.12s + public const ulong ManifestId = 1328515537648622656; // 2021.4.14s public override async Task RunAsync(BuildContext context) {