Skip to content

Commit cbb4107

Browse files
committed
Fix shared client/server profile not allowing client/server-only mods
1 parent b5c4461 commit cbb4107

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

frontend/src/lib/utils/modCompatibility.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,8 @@ function checkTargetCompatibility(
114114
const hasAllClient = clientRequiredTargets.length > 0 && unsupportedClientTargets.length === 0;
115115
const hasAllServer = serverRequiredTargets.length > 0 && unsupportedServerTargets.length === 0;
116116

117-
if (hasAllClient) {
118-
return unsupportedServerTargets;
119-
}
120-
if (hasAllServer) {
121-
return unsupportedClientTargets;
117+
if (hasAllClient || hasAllServer) {
118+
return [];
122119
}
123120
return [...unsupportedClientTargets, ...unsupportedServerTargets];
124121
}

0 commit comments

Comments
 (0)