critical includeRandom bugfix

This commit is contained in:
O-01-67 2022-09-02 14:32:29 -04:00 committed by GitHub
parent 845b2db9ff
commit 388238ead8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,10 +33,10 @@ runAfterLoad(function() {
temp: elements[liquidArray[i]].temp,
hardness: 1,
};
if(includeRandom == true) {
if(includeRandom) {
elements[liquidArray[i]].excludeRandom ? elements[`${liquidArray[i]}_spout`].excludeRandom = true : elements[`${liquidArray[i]}_spout`].excludeRandom = false;
} else {
elements[`${liquidArray[i]}_spout`].excludeRandom = false;
elements[`${liquidArray[i]}_spout`].excludeRandom = true;
};
};
spoutChoices = Object.keys(elements).filter(function(e) {