Skip to content
Snippets Groups Projects
Commit cf96f564 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

fix

parent 7a7b3408
No related branches found
No related tags found
1 merge request!6866Chastity fix
...@@ -86,9 +86,10 @@ globalThis.isItemAccessible = (function() { ...@@ -86,9 +86,10 @@ globalThis.isItemAccessible = (function() {
} }
function isAvailable(item, category, slave) { function isAvailable(item, category, slave) {
let slaveResults;
if (slave) { if (slave) {
let slaveResults = isAvailableForSlave(item, category, slave); slaveResults = isAvailableForSlave(item, category, slave);
if (slaveResults !== true) { // If they are true we pass this check but want to run the others. if (slaveResults === false) {
return slaveResults; return slaveResults;
} }
} }
...@@ -158,6 +159,9 @@ globalThis.isItemAccessible = (function() { ...@@ -158,6 +159,9 @@ globalThis.isItemAccessible = (function() {
return false; return false;
} }
} }
if (slaveResults) { // If we still haven't returned true or false, then we display why this particular slave can't use the item.
return slaveResults;
}
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment