mergeGameUpdates fix batch.length === 0 return case

This commit is contained in:
scamiv
2025-11-26 14:57:52 +01:00
parent e4178d3dc6
commit 43774615f0
+9 -1
View File
@@ -632,7 +632,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];