[BUG] Sometimes when a custom mob dies becomes a vanilla mob.
Hello, as the title says I encountered an issue where my custom mobs became vanilla mobs when they die(The mobs, drop the vanilla drops, instead of the ones that I set, the onDeath skills never trigger, and also the death of the mob doesn't count in a MythicDungeons trigger). This happens randomly, and I am not 100% sure what causes it, but I might have an idea. It seems to happen when you set the option Despawn: false in a mob, because 2 hours now since I removed this option, I haven't encountered the issue again(The issue normally happens immediately after a server restart). My server software is Paper 1.19.3 Build 404, but I had this issue with older versions of Paper and Purpur. I have tried to remove every plugin except MythicMobs with no luck. I haven't changed anything in the configs of the server(bukkit.yml, spigot.yml, paper configs). I am using the latest dev build of MythicMobs(5.2.3-SNAPSHOT/4367). Here are my MythicMobs config.yml and my MythicMobs Pack: config.yml ruins_of_petrania_dungeon.zip
Edit: I am using MMOItems in the droptables, but the issue happens with other items as drops too! The plugin doesn't throw any errors when the issue happens! Also, I am still testing and I haven't seen the issue for 13 hours now(As I said above the option Despawn: false seems to be the problem).
Edit 2: After more testing, the issue happens if you set the Despawn option to false or persistent. If you set it to true or chunk it doesn't seem to happen.
Edit 3: After even more testing the issue seems to happen when the option Despawn is set to false or persistent AND the mob dies from indirect damage from a player(for example fire applied by a bow/sword), or suffocation. Here is a log with debug level 4 (https://mclo.gs/vRJjfdM). I spawned 200 custom mobs in 1 block and 177 of them died from suffocation and the rest from me. 1 of the 177 that died from suffocation dropped vanilla drops. As you can see in the logs there are 200 entries of the MythicMobSpawnEvent and only 199 of the MythicMobDeathEvent. Also, there is an entry that seems interesting in line 10969 "Failed to load 7b44c6f9-d24f-4ebc-a327-924d44913ad0 from PersistentData".