is still not working aaaa

This commit is contained in:
sq 2024-09-22 19:54:11 +08:00 committed by GitHub
parent 0f65f98c0a
commit 89bab82944
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,8 @@ runAfterLoad(function() {
let elementMod = "Sandboxels (Vanilla)";
for (let mod of enabledMods) {
if (modDescriptions[mod].includes(elementName)) {
if (modDescriptions[mod].includes(`elements.${elementName} =`) ||
modDescriptions[mod].includes(`elements["${elementName}"] =`)) {
elementMod = mod;
break;
}
@ -44,5 +45,5 @@ runAfterLoad(function() {
element.desc = `This Element is from ${elementMod}`;
}
});
});
});
});