Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SSMP/Ui/Chat/ChatBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ private static bool IsInventoryOpen() {
if (gameManager == null) return false;

var invFsm = gameManager.inventoryFSM;
if (invFsm == null) return false;
if (invFsm == null || !invFsm.Active) return false;
var stateName = invFsm.ActiveStateName;
return stateName != "Closed" && stateName != "Can Open Inventory?";
}
Expand Down
2 changes: 1 addition & 1 deletion SSMP/Ui/UiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ private void CreateConnectionInterface(ComponentGroup parent) {
private void CreateInGameInterface(ComponentGroup parent) {
_inGameGroup = new ComponentGroup(parent: parent);

var infoBoxGroup = new ComponentGroup(parent: _inGameGroup);
var infoBoxGroup = new ComponentGroup();
InternalChatBox = new ChatBox(infoBoxGroup, _modSettings);
InternalChatBox.ChatInputEvent += input => ChatInputEvent?.Invoke(input);

Expand Down
Loading