fix(core): Updates prompt packet (#332)

- [X] Updates prompt packet
This commit is contained in:
Kamron Batman 2020-11-30 23:33:47 -08:00 committed by GitHub
parent 75c1b32513
commit 54b0a7dcb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 59 additions and 75 deletions

View file

@ -2064,17 +2064,14 @@ namespace Server
m_Prompt = null;
// TODO: Cancel the prompt anyway?
if (newPrompt != null)
{
oldPrompt?.OnCancel(this);
}
m_Prompt = newPrompt;
if (newPrompt != null)
{
Send(new UnicodePrompt(newPrompt));
}
NetState.SendPrompt(newPrompt);
}
}