From 645ec0758e03fcaaf3741c535b01713b22e94204 Mon Sep 17 00:00:00 2001 From: D1GQ Date: Fri, 16 Aug 2024 16:41:11 -0500 Subject: [PATCH] fixes --- Modules/AntiCheat.cs | 10 +--------- Modules/BetterHostManager.cs | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Modules/AntiCheat.cs b/Modules/AntiCheat.cs index 0906660..2791fe8 100644 --- a/Modules/AntiCheat.cs +++ b/Modules/AntiCheat.cs @@ -2,6 +2,7 @@ using HarmonyLib; using Hazel; using InnerNet; +using UnityEngine; using UnityEngine.Purchasing; namespace BetterAmongUs; @@ -308,15 +309,6 @@ class AntiCheat player.BetterData().LastTaskId = taskId; } - if (callId is (byte)RpcCalls.BootFromVent) - { - if (player.IsImpostorTeam() || player.myTasks.ToArray().Any(task => task.Id == (uint)TaskTypes.VentCleaning && !task.IsComplete)) - { - BetterNotificationManager.NotifyCheat(player, $"Invalid Action RPC: {Enum.GetName((RpcCalls)callId)}"); - Logger.LogCheat($"{player.Data.PlayerName} {Enum.GetName((RpcCalls)callId)}: {player.IsImpostorTeam()} - {player.myTasks.ToArray().Any(task => task.Id == (uint)TaskTypes.VentCleaning && !task.IsComplete)}"); - } - } - if (callId is (byte)RpcCalls.Pet or (byte)RpcCalls.CancelPet) { if (player?.CurrentOutfit?.PetId == "pet_EmptyPet") diff --git a/Modules/BetterHostManager.cs b/Modules/BetterHostManager.cs index 90beaee..54c0503 100644 --- a/Modules/BetterHostManager.cs +++ b/Modules/BetterHostManager.cs @@ -171,8 +171,8 @@ class BetterHostManager { _ = new LateTask(() => { - RPC.SyncAllNames(); - }, 0.25f, shoudLog: false); + RPC.SyncAllNames(force: true); + }, 1f, shoudLog: false); shouldReturn = true; }