Bug Closed · Resolved

FunctionSpawnNPC.class Bug

#5263 opened by Unknown 2 years ago

Unknownreported this 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: [Legacy attachment omitted]

Issue Location: [Legacy attachment omitted]

Unknowncommented

But actually now i took a more in depth look at it, and actually you don't register them anywhere in Citizens, so it could not be a big problem...

Nvm <3

Sign in to join the discussion.