Merge branch 'main' of github.com:sullivansean27/tomecraft into main
This commit is contained in:
commit
1c88134753
@ -244,7 +244,12 @@ export default function useServerSocket(
|
||||
|
||||
React.useEffect(() => {
|
||||
if (state.status !== 'pre-game') return
|
||||
const intervalId = setInterval(() => {
|
||||
sendJson({command: 'ready', player_id: state.playerId, match_id: state.matchId})
|
||||
}, 200)
|
||||
return () => {
|
||||
clearInterval(intervalId)
|
||||
}
|
||||
}, [sendJson, state])
|
||||
|
||||
React.useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user