mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Solution Cleanup + TChinese template file by 柚子
This commit is contained in:
1 parent
fd5240c0ee
commit
07a21e9935
468 files changed
+68826
-51464
No files matched your search
@@ -3,19 +3,20 @@
|
||||
namespace EHR.Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.AddVote))]
|
||||
class VoteBanSystemPatch
|
||||
internal class VoteBanSystemPatch
|
||||
{
|
||||
public static bool Prefix()
|
||||
{
|
||||
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.CmdAddVote))]
|
||||
class VoteBanSystemPatchCmd
|
||||
internal class VoteBanSystemPatchCmd
|
||||
{
|
||||
public static bool Prefix()
|
||||
{
|
||||
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user