
CobblemonOptimizer
CobbleOptimizer is a server-side Fabric mod that reduces lag caused by Cobblemon's Pokemon entities.
Список изменений
Fishing Fix Summary (v4.2.0)
The mod was indiscriminately blocking/despawning Pokémon spawned by fishing because it treated all spawns identically — no distinction between wild spawns and player-initiated ones (fishing, etc.).
What was wrong
- AdaptiveSpawn cancelled fishing spawns during low TPS or emergency mode
- BatchDespawn targeted freshly-fished Pokémon first (new entities scored as most expendable)
- No spawn source differentiation anywhere in the codebase
What was fixed
AdaptiveSpawnManager — Added a near-player proximity check before any blocking logic. If a Pokémon spawns within nearPlayerSpawnProtectRadius (default: 16 blocks) of any player, it bypasses all TPS-based, emergency, and density spawn blocking. Fishing bobbers are always near the player, so fishing spawns are always protected.
DespawnPriority — Added a spawn grace period. Pokémon younger than spawnGracePeriodTicks (default: 600 ticks / 30 seconds) that are within minDespawnRadius (32 blocks) of a player are marked as protected and excluded from both age-based and count-based despawn sweeps.
TickThrottle / AIFreeze — No changes needed. Both already exempt Pokémon within 32 blocks of a player.