Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
🐛 Fix operating bar interruptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasmical committed Mar 7, 2022
1 parent 8375464 commit 42079a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RogueLibsCore/Interactions/InteractionModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ public void OnPressedButton(string buttonName)
}

// if the interaction opened some kind of menu, stop here (presumably, object buttons are hidden)
if (Agent.worldSpaceGUI?.openedUseOn is true
if (Instance.interactingAgent is null
|| Agent.worldSpaceGUI?.openedUseOn is true
|| Agent.worldSpaceGUI?.openedChest is true
|| Agent.worldSpaceGUI?.openedChest2 is true
|| Agent.worldSpaceGUI?.openedNPCChest is true
|| Agent.mainGUI?.showingTarget is true
|| Agent.mainGUI?.openedOperatingBar is true
|| Agent.mainGUI?.openedScrollingMenu is true
|| Agent.mainGUI?.openedScrollingMenuPersonal is true) return;

Expand Down

0 comments on commit 42079a1

Please sign in to comment.