fix: disable physics for viewer
This commit is contained in:
parent
a0bfa275af
commit
2b881ea5ba
1 changed files with 1 additions and 0 deletions
|
|
@ -543,6 +543,7 @@ export async function connect (connectOptions: ConnectOptions) {
|
|||
window.bot = bot
|
||||
if (connectOptions.viewerWsConnect) {
|
||||
void handleCustomChannel()
|
||||
bot.physicsEnabled = false
|
||||
}
|
||||
customEvents.emit('mineflayerBotCreated')
|
||||
if (singleplayer || p2pMultiplayer || localReplaySession) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue