made name rendering more efficient

This commit is contained in:
Evan
2025-01-20 20:58:15 -08:00
parent 70a5b8883e
commit e4f0d76733
5 changed files with 33 additions and 8 deletions
+1
View File
@@ -95,6 +95,7 @@ export class PlayerExecution implements Execution {
clusters.sort((a, b) => b.size - a.size);
const main = clusters.shift()
this.player.largestClusterBoundingBox = calculateBoundingBox(this.mg, main)
const surroundedBy = this.surroundedBySamePlayer(main)
if (surroundedBy && !this.player.isAlliedWith(surroundedBy)) {
this.removeCluster(main)