bugfix: have radial menu check canBuild when checking if boating allowed

This commit is contained in:
evan
2025-04-22 08:15:21 -07:00
parent fd0279cdf4
commit cee06c82db
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -380,7 +380,8 @@ export class RadialMenu implements Layer {
});
}
if (
actions.buildableUnits.some((bu) => bu.type == UnitType.TransportShip)
actions.buildableUnits.find((bu) => bu.type == UnitType.TransportShip)
?.canBuild
) {
this.activateMenuElement(Slot.Boat, "#3f6ab1", boatIcon, () => {
// BestTransportShipSpawn is an expensive operation, so