8e91842d4c
The ItemBaseClassCache is only generated for items with a _type of 'Items', so before trying to look up an item in itemHasBaseClass, make sure the item also has a _type of 'Item' Move `allDbItems` to a class variable since we need it for looking up the _type of the given template Id This shouldn't require any changes to mods Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/281 Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> |
||
---|---|---|
.. | ||
.vscode | ||
assets | ||
src | ||
tests | ||
.dockerignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.nvmrc | ||
.swcrc | ||
biome.json | ||
docker-compose.yml | ||
Dockerfile | ||
Dockerfile.docs | ||
Dockerfile.pnpm | ||
dprint.json | ||
gulpfile.mjs | ||
package.json | ||
pkgconfig.json | ||
Server.code-workspace | ||
tsconfig.base.json | ||
tsconfig.json | ||
tsconfig.typedef.json | ||
typedoc.json | ||
vitest.config.ts |