EchoPet

EchoPet

882k Downloads

Pet duplication still there

ItsHarry opened this issue ยท 25 comments

commented

Updated to 2.0.10 today, pet duplication issue is still there

commented

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

commented

Any ideas?

commented

Not yet. I'm trying to get a server set up so that I can test it. Haven't used BungeeCord before though.

commented

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 :/.

commented

Just copy your bukkit folder and put it to a different port :)

commented

Got it working, and strangely enough I'm having no trouble :/.

commented

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.

commented

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

commented

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?

commented

That shouldn't be happening. Are the default Pets duplicating those already existing?

commented

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.

commented

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.

commented

Alright, sounds good mate

commented

Try 91. It doesn't duplicate in the PetHandler.pets anymore.

commented

Yeah, I've been on and noticed the pets in the spawn.

commented

I'm assuming this is fixed seeing as there isn't many pets at spawn now. Would I be correct?

commented

I think so, I'm not at home so I can't check

commented

Nevermind...It's started again.

commented

I'm back home now, how's it going

commented

It's not as bad as it used to be. I've noticed only chickens in your spawn.

commented

Okay

commented

So is this still a major issue?

commented

It's still there but it's much better than before

commented

Lol this issue is old and doesn't happen anymore

commented

It's good that it's finally resolved lol.