diff --git a/README.MD b/README.MD index 9b07bdb56..6756d3505 100644 --- a/README.MD +++ b/README.MD @@ -139,7 +139,7 @@ Server specific: Single player specific: - `?loadSave=` - Load the save on load with the specified folder name (not title) -- `?singleplayer=1` - Create empty world on load. Nothing will be saved +- `?singleplayer=1` or `?sp=1` - Create empty world on load. Nothing will be saved - `?version=` - Set the version for the singleplayer world (when used with `?singleplayer=1`) - `?noSave=true` - Disable auto save on unload / disconnect / export whenever a world is loaded. Only manual save with `/save` command will work. - `?serverSetting=:` - Set local server [options](https://github.com/zardoy/space-squid/tree/everything/src/modules.ts#L51). For example `?serverSetting=noInitialChunksSend:true` will disable initial chunks loading on the loading screen. diff --git a/src/index.ts b/src/index.ts index 637e0655c..437dca3c8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -932,7 +932,7 @@ watchValue(miscUiState, async s => { const qs = new URLSearchParams(window.location.search) const moreServerOptions = {} as Record if (qs.has('version')) moreServerOptions.version = qs.get('version') - if (qs.get('singleplayer') === '1') { + if (qs.get('singleplayer') === '1' || qs.get('sp') === '1') { loadSingleplayer({}, { worldFolder: undefined, ...moreServerOptions