Skip to content

Commit 6442a6c

Browse files
committed
Update mine.js
1 parent f6868c5 commit 6442a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/programs/city/mine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class CityMine extends kernel.process {
192192
}
193193
if (!this.data.ssp[source.id]) {
194194
if (this.room.storage) {
195-
this.data.ssp[source.id] = this.room.findPath(this.room.storage.pos, source.pos, {
195+
this.data.ssp[source.id] = this.room.findPath(this.room.storage.pos, source.getMiningPosition(), {
196196
ignoreCreeps: true,
197197
maxOps: 6000
198198
}).length

0 commit comments

Comments
 (0)