dont apply changes already done

This commit is contained in:
Zutatensuppe 2020-11-17 22:47:55 +01:00
parent 235760c831
commit d399f2b65f

View file

@ -33,6 +33,8 @@ function connect(gameId, clientId) {
const msgClientSeq = msg[2]
if (msgClientId === clientId && events[msgClientSeq]) {
delete events[msgClientSeq]
// we have already calculated that change locally. probably
return
}
changesCallback(msg)
}