diff --git a/decoder/pokestop.go b/decoder/pokestop.go index b7a68079..80de53ba 100644 --- a/decoder/pokestop.go +++ b/decoder/pokestop.go @@ -609,7 +609,10 @@ func (stop *Pokestop) updatePokestopFromGetContestDataOutProto(contest *pogo.Con stop.ShowcasePokemonType = null.IntFromPtr(nil) } else { //TODO there is also a Type2 in the Proto - log.Warnf("SHOWCASE: Stop: '%s' with Focussed Pokemon Type 2: %d", stop.Id, int64(focussedPokemonType.GetPokemonType_2())) + type2 := int64(focussedPokemonType.GetPokemonType_2()) + if type2 != 0 { + log.Warnf("SHOWCASE: Stop: '%s' with Focussed Pokemon Type 2: %d", stop.Id, type2) + } stop.ShowcasePokemonType = null.IntFrom(int64(focussedPokemonType.GetPokemonType_1())) } }