From e7bc28255ab0489d0c3a607af611faf83e1452cb Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 19 Jan 2021 04:40:23 -0600 Subject: [PATCH] Move prompt type from entity data to client data --- scripts/server/account.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/account.js b/scripts/server/account.js index dddb9903..8166dcec 100644 --- a/scripts/server/account.js +++ b/scripts/server/account.js @@ -423,7 +423,7 @@ function loginSuccess(client) { if(getPlayerData(client).subAccounts.length == 0) { if(getServerConfig().useGUI && doesPlayerHaveGUIEnabled(client)) { showPlayerPromptGUI(client, "You have no characters. Would you like to make one?", "No characters"); - setEntityData(client, "ag.prompt", AG_PROMPT_CREATEFIRSTCHAR, false); + getPlayerData(client).promptType = AG_PROMPT_CREATEFIRSTCHAR; logToConsole(LOG_DEBUG, `[Asshat.Account] ${getPlayerDisplayForConsole(client)} is being shown the no characters prompt GUI`); } else { messagePlayerAlert(client, `You have no characters. Use /newchar to make one.`); @@ -690,7 +690,7 @@ function checkRegistration(client, password, confirmPassword = "", emailAddress if(getServerConfig().useGUI && doesPlayerHaveGUIEnabled(client)) { showPlayerRegistrationSuccessGUI(client); showPlayerPromptGUI(client, "You have no characters. Would you like to make one?", "No Characters"); - setEntityData(client, "ag.prompt", AG_PROMPT_CREATEFIRSTCHAR, false); + getPlayerData(client).promptType = AG_PROMPT_CREATEFIRSTCHAR; } else { messagePlayerAlert(client, `You have no characters. Use /newchar to make one.`); }