mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:20:45 +00:00
only compare archived hash if not null/undefined (#198)
This commit is contained in:
@@ -96,7 +96,7 @@ export class LocalServer {
|
||||
return;
|
||||
}
|
||||
const archivedHash = this.turns[clientMsg.turnNumber].hash;
|
||||
if (archivedHash != clientMsg.hash) {
|
||||
if (archivedHash && archivedHash != clientMsg.hash) {
|
||||
console.warn(
|
||||
`desync detected on turn ${clientMsg.turnNumber}, client hash: ${clientMsg.hash}, server hash: ${archivedHash}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user