修复获取有能量空位建筑函数

This commit is contained in:
jie
2024-11-03 22:17:23 +08:00
parent 57c28c29ef
commit 0d66740d0d
3 changed files with 3 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ export function FindCapacity(creep: Creep) {
return (
(type == STRUCTURE_EXTENSION ||
type == STRUCTURE_SPAWN) &&
structure.store.getFreeCapacity() != null && structure.store.getFreeCapacity() as number > 0
structure.store.getFreeCapacity(RESOURCE_ENERGY) as number > 0
)
}
})