Pet duplication still there
ItsHarry opened this issue ยท 25 comments
Is each pet supposed to be in PetHandler.pets twice? Each pet has the exact same location, name, everything.
This only happens using default pets, not when you use the command /pet
Not yet. I'm trying to get a server set up so that I can test it. Haven't used BungeeCord before though.
I don't think I really have the resources to set up BungeeCord properly. Just tested it with AncientGates (through different worlds) and it works perfectly :/.
Just tested 2.0.10 and it produced a duplicated Pet. Snapshot Build 90 seems to be working well though. Not having any trouble at all.
I just checked to make sure and I'm indeed using build 90, but it's still duplicating pets.
IP is play.itsjerryandharry.com if you wanna check
Any more ideas? D:
Have you looked into what I said in my first post?
While looping through the List pets; I noticed that each pet is in the list twice. Could this be linked with the duplicate pets issue or is it intentional?
That shouldn't be happening. Are the default Pets duplicating those already existing?
I'm not sure.
I made a command that simply loops through the list of pets and prints information about them.
You'll see that each pet is in there twice, they reference the same object because their name, x, y, z and everything is always exactly the same. Forget what I said about "it only happens with default pets", I'm not sure if it's correct.
I think that might be the problem. It only seems to happen when a player logs on and their pet is loaded from the file. My use of schedulers when the player logs on is probably not a good idea...
I'll take a look into it.
Try 91. It doesn't duplicate in the PetHandler.pets anymore.
I'm assuming this is fixed seeing as there isn't many pets at spawn now. Would I be correct?