Skip to content

Commit

Permalink
Fix simplify showing up in mod list
Browse files Browse the repository at this point in the history
  • Loading branch information
2767mr committed Mar 15, 2024
1 parent 5e53398 commit 67a5b55
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ccloader/ccmod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "ccloader",
"version": "2.23.2",
"version": "2.23.3",
"title": "CCLoader",
"description": "Modloader for CrossCode. This or a similar modloader is needed for most mods.",
"repository": "https://github.com/CCDirectLink/CCLoader",
Expand Down
2 changes: 1 addition & 1 deletion 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.2';
const CCLOADER_VERSION = '2.23.3';
const KNOWN_EXTENSIONS = ["post-game", "manlea", "ninja-skin", "fish-gear", "flying-hedgehag", "scorpion-robo", "snowman-tank"]

export class ModLoader {
Expand Down
2 changes: 2 additions & 0 deletions ccloader/js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export class Mod {
get isEnabled(){
if(this.disabled)
return false;
if(this.hidden)
return true;

return localStorage.getItem('modEnabled-' + this.name.toLowerCase()) !== 'false';
}
Expand Down
2 changes: 1 addition & 1 deletion ccloader/js/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Package {
result.icons = manifest.icons;
result.version = manifest.version || '0.0.0';
result.module = manifest.module === undefined || !!manifest.module;
result.hidden = false;
result.hidden = manifest.id === 'Simplify';

result.main = this._normalizeScript(file, manifest.poststart);
result.preload = this._normalizeScript(file, manifest.preload);
Expand Down

0 comments on commit 67a5b55

Please sign in to comment.