From e9fc7f6bf2f43ee7a2d5b54199b1607e00a6bb07 Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:06:02 -0700 Subject: [PATCH] Fix SouceContainer being null for actual move, which allowed swap with nonInteractive --- Patches/SwapPatches.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Patches/SwapPatches.cs b/Patches/SwapPatches.cs index c114639..4fad112 100644 --- a/Patches/SwapPatches.cs +++ b/Patches/SwapPatches.cs @@ -162,8 +162,8 @@ namespace UIFixes return AccessTools.Method(typeof(ItemView), nameof(ItemView.OnEndDrag)); } - [PatchPrefix] - public static void Prefix() + [PatchPostfix] + public static void Postfix() { SourceContainer = null; }