Remove redundant if condition

Noticed-By: @Cooldude2606
This commit is contained in:
Hornwitser committed 2024-04-28 20:39:27 +02:00
1 parent 464d588b5e
commit e341adfb29
1 file changed
-3
-3
View File
@@ -374,9 +374,6 @@ export default class ModPack {
value = typeof value === "object" ? prototype.default_value : String(value ?? "");
}
if (type === "color-setting") {
if (typeof value !== "object") {
value = prototype.default_value;
}
value = libLuaTools.normalizeColor(value as object);
}
this.settings[settingType].set(prototype.name, { value });