diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index 2cf057e..6128fe9 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -115,7 +115,7 @@ guesses.rounds = seed.rounds; $.panelsocketserver.sendJSONToAll(JSON.stringify({ 'eventFamily': 'chatguessr', - 'eventType': 'guesse', + 'eventType': 'guesses', 'data': JSON.stringify(guesses) })); } @@ -149,7 +149,7 @@ }else if(action.equalsIgnoreCase('refresh')){ if(seed.token == undefined) return; var newseed = fetchSeed(seed.token); - if(newseed.round > seed.round){ + if(newseed.player.guesses > seed.round){ $.setIniDbBoolean('chatguessr', 'isOpen',false) //NEW ROUND /Score var gp = newseed.player.guesses[seed.round - 1].lat+","+newseed.player.guesses[seed.round - 1].lng addGuess($.channelName,gp);