Skip to content

Commit

Permalink
Update mine.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanselmo committed Nov 24, 2020
1 parent f6868c5 commit 6442a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/programs/city/mine.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class CityMine extends kernel.process {
}
if (!this.data.ssp[source.id]) {
if (this.room.storage) {
this.data.ssp[source.id] = this.room.findPath(this.room.storage.pos, source.pos, {
this.data.ssp[source.id] = this.room.findPath(this.room.storage.pos, source.getMiningPosition(), {
ignoreCreeps: true,
maxOps: 6000
}).length
Expand Down

1 comment on commit 6442a6c

@alexanselmo
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the crappy commit message, see #438

Please sign in to comment.