Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Error #17

Open
Rohit3523 opened this issue Dec 10, 2020 · 3 comments
Open

Error #17

Rohit3523 opened this issue Dec 10, 2020 · 3 comments

Comments

@Rohit3523
Copy link

TypeError: Cannot read property 'GameData' of undefined
at PlayerClient.get PlayerData [as PlayerData] (file:///C:/Users/******/node_modules/amongus-protocol/js/lib/struct/PlayerClient.js:52
:42)

@edqx
Copy link
Owner

edqx commented Dec 12, 2020

This is probably because GameData hasn't spawned yet, sorry for the late response.

@Rohit3523
Copy link
Author

So how i can spawn game data?

@edqx
Copy link
Owner

edqx commented Dec 13, 2020

Sorry for not explaining, GameData is spawned by the host so you'll have to wait for that by using await game.awaitSpawns().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants