Woops need to cache from names table

This commit is contained in:
Vortrex
2022-06-27 16:41:23 -05:00
parent ab7c73d7da
commit 66840a0de9

View File

@@ -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));
}