This commit is contained in:
Mister_Nebula 2022-05-13 22:42:34 +01:00
parent 514d7f8435
commit 19c9ce0457

View File

@ -46,7 +46,7 @@ public class ConversationManager : WorldObjectManager
}
public uint GetPlayerTalkingToTree(CharacterDialogueTree tree)
=> QSBPlayerManager.PlayerList.FirstOrDefault(x => x.CurrentCharacterDialogueTree.AttachedObject == tree).PlayerId;
=> QSBPlayerManager.PlayerList.FirstOrDefault(x => x.CurrentCharacterDialogueTree?.AttachedObject == tree).PlayerId;
public void SendPlayerOption(string text)
=> new ConversationMessage(ConversationType.Player, (int)QSBPlayerManager.LocalPlayerId, text).Send();