Skip to content

Commit

Permalink
updated events loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Jackson committed Sep 5, 2024
1 parent 4a96b80 commit 7999300
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/miner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ func main() {
y = event.Map.Y
}
}
if x == 0 && y == 0 {
x, y = artifacts.Client.FindRocks(models.Gold)
}
default:
x, y = artifacts.Client.FindRocks(models.Copper)
}
Expand Down
3 changes: 3 additions & 0 deletions cmd/woodcutting/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ func main() {
y = event.Map.Y
}
}
if x == 0 && y == 0 {
x, y = artifacts.Client.FindTrees(models.DeadTree)
}
default:
x, y = artifacts.Client.FindTrees(models.AshTree)
}
Expand Down

0 comments on commit 7999300

Please sign in to comment.