From 703f38563daf00acc220341c2947a22f0acff7a8 Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Sat, 20 Apr 2024 01:17:16 -0700 Subject: [PATCH] Fix scrolling on item transfer --- Patches/ScrollPatches.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Patches/ScrollPatches.cs b/Patches/ScrollPatches.cs index 3898e10..95f4338 100644 --- a/Patches/ScrollPatches.cs +++ b/Patches/ScrollPatches.cs @@ -132,6 +132,11 @@ namespace UIFixes [PatchPrefix] private static void Prefix(SimpleStashPanel __instance, ScrollRect ____stashScroll) { + if (____stashScroll == null) + { + // For some reason, sometimes SimpleStashPanel doesn't have a reference to its own ScrollRect? + ____stashScroll = __instance.GetComponentInChildren(); + } HandleInput(____stashScroll); }