From 44895aa2d083c842184e95d09dd5d263a1cb5023 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 2 Nov 2022 06:49:46 -0500 Subject: [PATCH] Comment keybind combo (unfinished) --- scripts/server/keybind.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/keybind.js b/scripts/server/keybind.js index 0e1617a2..6641fe4d 100644 --- a/scripts/server/keybind.js +++ b/scripts/server/keybind.js @@ -106,14 +106,14 @@ function copyKeyBindsToServerCommand(command, params, client) { // =========================================================================== -function addPlayerKeyBind(client, keys, command, params, tempKey = false) { +function addPlayerKeyBind(client, keyId, command, params, tempKey = false) { let keyBindData = new KeyBindData(false, keys, `${command} ${params}`); if (tempKey == true) { keyBindData.databaseId = -1; } getPlayerData(client).keyBinds.push(keyBindData); - sendAddAccountKeyBindToClient(client, keys, (keys.length > 1) ? AGRP_KEYSTATE_COMBO : AGRP_KEYSTATE_UP); + sendAddAccountKeyBindToClient(client, keyId, AGRP_KEYSTATE_UP); if (!doesPlayerHaveKeyBindsDisabled(client) && doesPlayerHaveKeyBindForCommand(client, "enter")) { let keyId = getPlayerKeyBindForCommand(client, "enter");