Woops need to cache from names table
This commit is contained in:
@@ -114,7 +114,7 @@ function deletePaintBallItems(client) {
|
|||||||
function cacheAllPaintBallItemTypes() {
|
function cacheAllPaintBallItemTypes() {
|
||||||
logToConsole(LOG_DEBUG, `[VRR.PaintBall]: Cacheing all paintball item types ...`);
|
logToConsole(LOG_DEBUG, `[VRR.PaintBall]: Cacheing all paintball item types ...`);
|
||||||
for (let i in paintBallItemNames[getGame()]) {
|
for (let i in paintBallItemNames[getGame()]) {
|
||||||
let itemTypeId = getItemTypeFromParams(paintBallItems[getGame()][i]);
|
let itemTypeId = getItemTypeFromParams(paintBallItemNames[getGame()][i]);
|
||||||
if (itemTypeId != -1 && getItemTypeData(itemTypeId) != false) {
|
if (itemTypeId != -1 && getItemTypeData(itemTypeId) != false) {
|
||||||
paintBallItems.push(getItemTypeData(itemTypeId));
|
paintBallItems.push(getItemTypeData(itemTypeId));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user