diff --git a/.gitignore b/.gitignore index 5f84f6dd53..f80fc6ce3d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ i18n_cache apidoc/html *.swp .idea* -config.json +config*.json npm-debug.log* lib newrelic_agent.log diff --git a/website/server/libs/items/utils.js b/website/server/libs/items/utils.js index de643a3866..5bc243945f 100644 --- a/website/server/libs/items/utils.js +++ b/website/server/libs/items/utils.js @@ -99,6 +99,7 @@ export function castItemVal (itemPath, itemVal) { // Gear is true when you own it and false if you previously owned it but lost it (e.g., Death) // Null, empty string, or undefined are taken to mean "unset" i.e. never owned. if (['null', '', 'undefined'].includes(itemVal)) return undefined; + if (itemVal === 'false') return false; return Boolean(itemVal); }