Skip to content

Commit dad8a4a

Browse files
committed
Fixed hasLurePokemon() from always returning false unless the lure module expired and the pokestop was still in memory with a pokemon. It now properly returns true if there is a pokemon at the pokestop and the lure is not expired.
1 parent ef8079b commit dad8a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/pokegoapi/api/map/fort/Pokestop.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public FortDetails getDetails() throws LoginFailedException, RemoteServerExcepti
188188
*/
189189
@Deprecated
190190
public boolean hasLurePokemon() {
191-
return fortData.hasLureInfo() && fortData.getLureInfo().getLureExpiresTimestampMs() < api.currentTimeMillis();
191+
return fortData.hasLureInfo() && fortData.getLureInfo().getLureExpiresTimestampMs() > api.currentTimeMillis();
192192
}
193193

194194
/**

0 commit comments

Comments
 (0)