FunctionSpawnNPC.class Bug
Hey! Today i tried to work a bit with FunctionSpawnNPC; as you can see from the code of MythicDungeons when you create a new npc by cloning a premade one, you use the same ID, but this will make some errors using other plugins. I'm here to ask if you can remove this, so when you clone a NPC, generate him with a random int (and please make sure no other npcs has the same id) - this could fix tons of problem that could come further.
And also i have another suggestion, in order to be able to get the "original" id, you can add a listener to the NPCCloneEvent or something like this and make it similar to: