Skip to content

Commit

Permalink
Merge pull request #103 from CCDirectLink/dependency-error-fix
Browse files Browse the repository at this point in the history
Fix wrong dependency error messages
  • Loading branch information
2767mr authored Feb 9, 2024
2 parents 91839c5 + bdaa117 commit 1d596c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ccloader/js/ccloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Plugin } from './plugin.js';
import { Greenworks } from './greenworks.js';
import { Package } from './package.js';

const CCLOADER_VERSION = '2.23.0';
const CCLOADER_VERSION = '2.23.1';
const KNOWN_EXTENSIONS = ["post-game", "manlea", "ninja-skin", "fish-gear", "flying-hedgehag", "scorpion-robo", "snowman-tank"]

export class ModLoader {
Expand Down Expand Up @@ -190,7 +190,7 @@ export class ModLoader {
}

for (const mod of this.mods.filter(m => m.isEnabled)) {
this._printMissingDependencies(mod, this.mods);
this._printMissingDependencies(mod, [...mods, ...this.mods]);
}

for (const mod of this.mods) {
Expand Down Expand Up @@ -280,7 +280,7 @@ export class ModLoader {
if (isExtension && !this.extensions.includes(depName)) {
result[depName] = `${depDesc} is missing`
} else if (!enabled) {
result[depName] = `${depDesc} is disabled`;
result[depName] = `${depDesc} is disabled or could not be loaded`;
} else if (depVersion === null) {
result[depName] = `${depDesc} is missing`;
} else if (semver.valid(depVersion) === null) {
Expand Down
2 changes: 1 addition & 1 deletion ccloader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"ccmodHumanName": "CCLoader",
"ccmodType": "base",
"description": "Modloader for CrossCode. This or a similar modloader is needed for most mods.",
"version": "2.23.0"
"version": "2.23.1"
}

0 comments on commit 1d596c8

Please sign in to comment.