Skip to content
Snippets Groups Projects
Commit 2448f0b1 authored by Greg Fodor's avatar Greg Fodor
Browse files

Fix bot

parent db709026
No related branches found
No related tags found
No related merge requests found
...@@ -260,10 +260,6 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) { ...@@ -260,10 +260,6 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) {
debug: !!isDebug debug: !!isDebug
}); });
if (isBotMode) {
entryManager.enterSceneWhenLoaded(new MediaStream(), false);
}
while (!scene.components["networked-scene"] || !scene.components["networked-scene"].data) await nextTick(); while (!scene.components["networked-scene"] || !scene.components["networked-scene"].data) await nextTick();
scene.components["networked-scene"] scene.components["networked-scene"]
...@@ -278,6 +274,10 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) { ...@@ -278,6 +274,10 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) {
hubChannel.channel.push("naf", payload); hubChannel.channel.push("naf", payload);
}; };
if (isBotMode) {
entryManager.enterSceneWhenLoaded(new MediaStream(), false);
}
}) })
.catch(connectError => { .catch(connectError => {
// hacky until we get return codes // hacky until we get return codes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment