Skip to content

Commit

Permalink
Prevent message input dialog from opening when in chat menu
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellochner committed Aug 25, 2024
1 parent 5ab9105 commit 6feec47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class CreatureMessenger : PlayerMessenger
#region Properties
public CreatureConstructor Constructor { get; set; }

public override bool CanSend => base.CanSend && !CinematicManager.Instance.IsInCinematic && !EditorManager.Instance.IsEditing && SettingsManager.Data.WorldChat && WorldManager.Instance.IsMultiplayer;
public override bool CanSend => base.CanSend && !CinematicManager.Instance.IsInCinematic && !EditorManager.Instance.IsEditing && SettingsManager.Data.WorldChat && WorldManager.Instance.IsMultiplayer && !PlayerChatManager.Instance.IsOpen;
public override bool CanReceive => base.CanReceive && SettingsManager.Data.WorldChat;

public override bool TryOpen => InputUtility.GetKeyDown(KeybindingsManager.Data.Talk);
Expand Down

0 comments on commit 6feec47

Please sign in to comment.