Skip to content

Commit

Permalink
updated mining and woodcutting image
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Jackson committed Sep 4, 2024
1 parent 78153bd commit c551b59
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 @@ -53,6 +53,9 @@ func main() {
x, y = artifacts.Client.FindRocks(models.Gold)
continue
}
if len(events.Data) == 0 {
x, y = artifacts.Client.FindRocks(models.Gold)
}
for _, event := range events.Data {
if event.Name == "Strange Apparition" {
x = event.Map.X
Expand Down
3 changes: 3 additions & 0 deletions cmd/woodcutting/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func main() {
x, y = artifacts.Client.FindTrees(models.DeadTree)
continue
}
if len(events.Data) == 0 {
x, y = artifacts.Client.FindTrees(models.DeadTree)
}
for _, event := range events.Data {
if event.Name == "Magic Apparition" {
x = event.Map.X
Expand Down

0 comments on commit c551b59

Please sign in to comment.