Cobblemon 1.6.0 Snapshot NPC Pokemon dupe

Summary

If the server crashes (or is manually forced shutdown) while battling an npc, on startup, the current pokemon of the npc is spawned as a normal capturable pokemon

Steps to reproduce

  1. run cobblemon on a server
  2. /spawnnpc standard
  3. battle the npc
  4. force the server to shut down (clicking x is enough on the server console in windows)
  5. restart the server
  6. the pokemon of the npc will now be spawned next to you

What is the current bug behavior?

I'd assume the pokemon of the npcs doesn't despawn. And when the server restarts, the server probably doesn't recognize the pokemon as owned because the npc is not a registered player.

What is the expected correct behavior?

self explanatory

Cobblemon Version and Mod Loader

fabric, cobblemon 1.6.0 compiled from source with no modifications

Mods used besides Cobblemon

fabric-api, don't think its the problem