fix: fix config

This commit is contained in:
Tsubasa6848
2024-03-29 18:49:34 +08:00
Unverified
parent 2adf2d07ab
commit 7da05ae8b6
+1 -1
View File
@@ -57,7 +57,7 @@ bool ShouldClean(Actor* actor) {
// Mobs // Mobs
else if (en->isMob()) { else if (en->isMob()) {
if (Config->getValue<bool>({"CleanMobs", "Enabled"}, false)) { if (Config->getValue<bool>({"CleanMobs", "Enabled"}, false)) {
auto blacklist = Config->getValue<std::vector<std::string>>({"CleanMobs", "Blacklist"}, {}); auto blacklist = Config->getValue<std::vector<std::string>>({"CleanMobs", "BlackList"}, {});
for (auto& key : blacklist) { for (auto& key : blacklist) {
if (isMatch(type, key)) { if (isMatch(type, key)) {
return true; return true;