Skip to content

Commit 461a2ee

Browse files
authored
fix: Stop the client switching to spawn mode by default when unspawned (#44)
This makes the client stay in view mode until you actually decide the room is worth and you want to spawn in. Mostly because it's tiresome to always have to switch back when you're simply looking around.
1 parent 12a2302 commit 461a2ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/clientApp.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ koa.use(async (context, next) => {
352352

353353
// Fix the hardcoded protocol in URLs
354354
src = src.replace(/"http:\/\/"\+([^\.]+)\.options\.host/g, '$1.options.protocol+"//"+$1.options.host');
355+
356+
// Remove the default-to-place-spawn behavior when you're not spawned in
357+
src = src.replace(
358+
'h.get("user/world-status").then(function(t){"empty"==t.status&&(P.selectedAction.action="spawn",',
359+
'h.get("user/world-status").then(function(t){"empty"==t.status&&(',
360+
);
355361
}
356362
return argv.beautify ? jsBeautify(src) : src;
357363
} else if (urlPath === 'components/profile/profile.html') {

0 commit comments

Comments
 (0)