From 48350d6f330c7106338fb991a9ff9ee1e0cea63a Mon Sep 17 00:00:00 2001 From: uwap Date: Wed, 21 Dec 2022 13:40:38 +0100 Subject: [PATCH] Add a Road planner --- src/RoomPlanner/Blueprints/Roads.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RoomPlanner/Blueprints/Roads.ts b/src/RoomPlanner/Blueprints/Roads.ts index 083d12f..2ff0cac 100644 --- a/src/RoomPlanner/Blueprints/Roads.ts +++ b/src/RoomPlanner/Blueprints/Roads.ts @@ -1,5 +1,5 @@ export const buildRoads = (room: Room) => { - if (room.controller?.level ?? 0 < 2) { + if ((room.controller?.level ?? 0) < 2) { return; } const sources = room.find(FIND_SOURCES);