Added missing branch for CONFLICTING dependencies

This commit is contained in:
Kir_Antipov 2024-01-04 09:25:29 +00:00
parent ee9458a1c4
commit baebb4e594

View file

@ -78,12 +78,12 @@ function fromDependencyType(type: DependencyType): ModrinthDependencyType | unde
switch (type) { switch (type) {
case DependencyType.REQUIRED: case DependencyType.REQUIRED:
return ModrinthDependencyType.REQUIRED; return ModrinthDependencyType.REQUIRED;
case DependencyType.OPTIONAL:
case DependencyType.RECOMMENDED: case DependencyType.RECOMMENDED:
return ModrinthDependencyType.OPTIONAL; return ModrinthDependencyType.OPTIONAL;
case DependencyType.EMBEDDED: case DependencyType.EMBEDDED:
return ModrinthDependencyType.EMBEDDED; return ModrinthDependencyType.EMBEDDED;
case DependencyType.OPTIONAL: case DependencyType.CONFLICTING:
return ModrinthDependencyType.OPTIONAL;
case DependencyType.INCOMPATIBLE: case DependencyType.INCOMPATIBLE:
return ModrinthDependencyType.INCOMPATIBLE; return ModrinthDependencyType.INCOMPATIBLE;
default: default: