Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

refactor: change movement patch #312

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions source/Patches/CanMove.cs

This file was deleted.

10 changes: 10 additions & 0 deletions source/Patches/MovementPatch.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using HarmonyLib;

namespace TownOfUs
{
[HarmonyPatch(typeof(ControllerManager), nameof(ControllerManager.IsUiControllerActive), MethodType.Getter)]
public static class MovementPatch
{
public static bool Prefix(out bool __result) => __result = false;
}
}