mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
fixes
This commit is contained in:
1 parent
aef41e668b
commit
645ec0758e
2 files changed
+3
-11
No files matched your search
@@ -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")
|
||||
|
||||
@@ -171,8 +171,8 @@ class BetterHostManager
|
||||
{
|
||||
_ = new LateTask(() =>
|
||||
{
|
||||
RPC.SyncAllNames();
|
||||
}, 0.25f, shoudLog: false);
|
||||
RPC.SyncAllNames(force: true);
|
||||
}, 1f, shoudLog: false);
|
||||
|
||||
shouldReturn = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user