mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 22:51:57 +00:00
mergeGameUpdates fix batch.length === 0 return case
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user