promotional bannermobile promotional banner
premium banner
Fixes a bug in Cobblemon where the maxPokedexScanningDetectionRange config option was not working properly.

Description

This mod fixes a bug in Cobblemon where the maxPokedexScanningDetectionRange config option was not being properly applied.

The Bug

In Cobblemon, the Pokedex scanner has a config option maxPokedexScanningDetectionRange that should control how far you can scan Pokemon. However, the entity detection bounding box was hardcoded to 12.0 + zoomLevel instead of using the config value, making the setting ineffective for values greater than 12.

The Fix

This mod overwrites the detectEntity method in PokemonScanner to use the config value for the bounding box size.

Note

This is a temporary fix until Cobblemon fixes this upstream.