Skip to content

Commit

Permalink
state
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Jan 25, 2024
1 parent 6441642 commit 4257965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/functions/botHookFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
} from './xrBotHookFunctions'
import { XRState } from '@etherealengine/engine/src/xr/XRState'
import { NetworkState } from '@etherealengine/engine/src/networking/NetworkState'
import { SceneState } from '@etherealengine/engine/src/ecs/classes/Scene'

export const BotHookFunctions = {
[BotHooks.IsBot]:isBot,
Expand Down Expand Up @@ -60,7 +61,7 @@ export function worldNetworkReady() {
}

export function sceneLoaded() {
return getState(EngineState).sceneLoaded
return getState(SceneState).sceneLoaded
}

export function getPlayerPosition() {
Expand Down

0 comments on commit 4257965

Please sign in to comment.