HoPGoldy/my-screeps-ai

memory为空 从零开始 报 this.room.transport.draw is not a function

923132714 opened this issue · 1 comments

memory 空时会先找不到stats.rooms 添加后,报下面的错

TypeError: this.room.transport.draw is not a function
    at ControllerExtension.onWork  (../src/mount/StructureExtension/ControllerExtension/ControllerExtension.ts:15:24)
    at App.errorMapper [as _catcher]  (../src/utils/global/ErrorMapper.ts:82:4)
    at App.doWithCatcher  (../src/modules/framework/index.ts:205:9)
    at allItem.forEach.item  (../src/modules/framework/index.ts:195:65)
    at App.do  (../src/modules/framework/index.ts:195:14)
    at App.run  (../src/modules/framework/index.ts:142:12)
    at Object.loop  (../src/main.ts:44:6)
[下午9:18:22][shardSeason]TypeError: this.room.transport.draw is not a function
    at ControllerExtension.onWork  (../src/mount/StructureExtension/ControllerExtension/ControllerExtension.ts:15:24)
    at App.errorMapper [as _catcher]  (../src/utils/global/ErrorMapper.ts:82:4)
    at App.doWithCatcher  (../src/modules/framework/index.ts:205:9)
    at allItem.forEach.item  (../src/modules/framework/index.ts:195:65)
    at App.do  (../src/modules/framework/index.ts:195:14)
    at App.run  (../src/modules/framework/index.ts:142:12)
    at Object.loop  (../src/main.ts:44:6)

image

更新了代码,好像解决了?