diff --git a/electron/index.js b/electron/index.js index 18943589..f1de906f 100644 --- a/electron/index.js +++ b/electron/index.js @@ -361,7 +361,8 @@ ipcMain.handle("get-mods", async () => { if (externalMod) { console.log("Adding external mod source:", externalMod); - modFiles.push(externalMod); + const externalModPaths = externalMod.split(","); + modFiles = modFiles.concat(externalModPaths); } if (modFiles.length > 0 && !isDev) { diff --git a/mod_examples/README.md b/mod_examples/README.md index 579eb34d..25b1d75e 100644 --- a/mod_examples/README.md +++ b/mod_examples/README.md @@ -5,7 +5,7 @@ Currently there are two options to develop mods for shapez.io: 1. Writing single file mods, which doesn't require any additional tools and can be loaded directly in the game -2. Using the `create-shapezio-mod` package. This package is still in development but allows you to pack multiple files and images into a single mod file, so you don't have to base64 encode your images etc. +2. Using the [create-shapezio-mod](https://www.npmjs.com/package/create-shapezio-mod) package. This package is still in development but allows you to pack multiple files and images into a single mod file, so you don't have to base64 encode your images etc. Since the `create-shapezio-mod` package is still in development, the current recommended way is to write single file mods, which I'll explain now. diff --git a/src/js/mods/mod_interface.js b/src/js/mods/mod_interface.js index 949e4301..e3b9e59b 100644 --- a/src/js/mods/mod_interface.js +++ b/src/js/mods/mod_interface.js @@ -369,7 +369,7 @@ export class ModInterface { /** * Registers a new state class, should be a GameState derived class - * @param {typeof GameState} stateClass + * @param {typeof import("../core/game_state").GameState} stateClass */ registerGameState(stateClass) { this.modLoader.app.stateMgr.register(stateClass); @@ -470,7 +470,7 @@ export class ModInterface { /** * - * @param {typeof Object} classHandle + * @param {Class} classHandle * @param {({ $super, $old }) => any} extender */ extendClass(classHandle, extender) {