Skip to content
This repository was archived by the owner on Jul 22, 2019. It is now read-only.

Commit

Permalink
Correctly reload stored spawn point and allow leaving the start area …
Browse files Browse the repository at this point in the history
…and find more pokestops and pokemon (#1321)
  • Loading branch information
jabbink authored Nov 15, 2016
1 parent 0425d6d commit 567b3b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'ink.abb'
version '0.8.1'
version '0.8.2'

buildscript {
ext {
Expand Down Expand Up @@ -64,7 +64,7 @@ configurations {
dependencies {
//compile files('../PokeGOAPI-Java/library/build/libs/PokeGOAPI-library-all-0.3.0.jar')

compile files('lib/api-0.0.5.jar')
compile files('lib/api-0.0.6.jar')

// TODO: Wait for jitpack to fix itself...
//compile 'com.github.Grover-c13:PokeGOAPI-Java:Development-SNAPSHOT'
Expand Down
Binary file renamed lib/api-0.0.5.jar → lib/api-0.0.6.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions src/main/kotlin/ink/abb/pogo/scraper/Bot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ class Bot(val api: PoGoApi, val settings: Settings) {
fun start() {
if (isRunning()) return

if (settings.saveLocationOnShutdown && settings.savedLatitude != 0.0 && settings.savedLongitude != 0.0) {
ctx.lat.set(settings.savedLatitude)
ctx.lng.set(settings.savedLongitude)
}

ctx.walking.set(false)

Log.normal("Name: ${api.playerData.username} - Team: ${api.playerData.team.name}")
Expand Down

0 comments on commit 567b3b4

Please sign in to comment.