Stickers: hacky workaround for bug in MTJobManager

This commit is contained in:
NotAKidoS 2024-08-25 21:20:27 -05:00
parent d635b45db2
commit d1102bb1e5
6 changed files with 18 additions and 6 deletions

View file

@ -35,7 +35,8 @@ public class StickerMod : MelonMod
if (StickerSystem.Instance == null)
return;
if (Input.mouseScrollDelta.y != 0f
if (StickerSystem.Instance.IsInStickerMode
&& Input.mouseScrollDelta.y != 0f
&& Cursor.lockState == CursorLockMode.Locked // prevent scrolling while in menus
&& !CVRInputManager.Instance.zoom) // prevent scrolling while using scroll zoom
StickerSystem.Instance.SelectedStickerSlot += (int)Input.mouseScrollDelta.y;