From 66840a0de9f218680158031309bcda1c0130b9a4 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 27 Jun 2022 16:41:23 -0500 Subject: [PATCH] Woops need to cache from names table --- scripts/server/paintball.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/server/paintball.js b/scripts/server/paintball.js index 176fc8e4..206b2607 100644 --- a/scripts/server/paintball.js +++ b/scripts/server/paintball.js @@ -114,7 +114,7 @@ function deletePaintBallItems(client) { function cacheAllPaintBallItemTypes() { logToConsole(LOG_DEBUG, `[VRR.PaintBall]: Cacheing all paintball item types ...`); for (let i in paintBallItemNames[getGame()]) { - let itemTypeId = getItemTypeFromParams(paintBallItems[getGame()][i]); + let itemTypeId = getItemTypeFromParams(paintBallItemNames[getGame()][i]); if (itemTypeId != -1 && getItemTypeData(itemTypeId) != false) { paintBallItems.push(getItemTypeData(itemTypeId)); }