[Stickers] Fixed placing stickers when Cohtml text input fields were focused

This commit is contained in:
NotAKidoS 2025-04-03 04:02:58 -05:00
parent c35d03b1ec
commit f99a22499c

View file

@ -1,4 +1,5 @@
using ABI_RC.Core;
using ABI_RC.Core.InteractionSystem;
using ABI_RC.Core.Player;
using ABI_RC.Core.Savior;
using ABI_RC.Systems.InputManagement;
@ -51,7 +52,8 @@ public class StickerMod : MelonMod
if (!Input.GetKeyDown((KeyCode)ModSettings.Entry_PlaceBinding.Value))
return;
if (CVRInputManager.Instance.textInputFocused)
if (CVRInputManager.Instance.textInputFocused
|| ViewManager.Instance.textInputFocused) // BRUH
return; // prevent placing stickers while typing
StickerSystem.Instance.PlaceStickerFromControllerRay(PlayerSetup.Instance.activeCam.transform);