Skip to content
Snippets Groups Projects
Commit 7a167f57 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fix-avail-checks-for-wardrobe' into 'pregmod-master'

Fix avail checks for wardrobe

Closes #2058

See merge request !7417
parents 1fcf9adf 3c94349d
No related branches found
No related tags found
1 merge request!7417Fix avail checks for wardrobe
......@@ -104,7 +104,7 @@ globalThis.isItemAccessible = (function() {
return true;
}
if (item.hasOwnProperty("rs")) {
if (item.rs) {
if (item.rs === true) {
return true;
}
}
......@@ -113,7 +113,7 @@ globalThis.isItemAccessible = (function() {
return true;
}
}
if (slaveResults) { // If we still haven't returned true or false, then we display why this particular slave can't use the item.
if (slaveResults && slaveResults !== true) { // If we still haven't returned true or false, then we display why this particular slave can't use the item.
return slaveResults;
}
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment