mergeGameUpdates fix batch.length === 0 return case

This commit is contained in:
scamiv
2025-11-26 14:57:52 +01:00
parent 0da975f615
commit 19e50465cc
+9 -1
View File
@@ -648,7 +648,15 @@ export class ClientGameRunner {
};
} {
if (batch.length === 0) {
return null;
return {
gameUpdate: null,
tileMetrics: {
count: 0,
utilization: 0,
overflow: 0,
drainTime: 0,
},
};
}
const last = batch[batch.length - 1];