diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index 619f040..036c116 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -97,7 +97,7 @@ if(guesses[current_round].some((v)=>v.user==user)) return; if(!isCoordinates(position)) return; var pos = toPos(position) - var distance = haversineDistance(pos, {lat:seed.rounds[current_round].lat,lon:seed.rounds[current_round].lon}) + var distance = haversineDistance(pos, {lat:seed.rounds[current_round].lat,lng:seed.rounds[current_round].lng}) var score = calculateScore(distance, scale) guesses[current_round].push({