Fixed issue with players re-appearing after logging off.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2021-08-27 19:46:00 +00:00
parent caa5749e6d
commit da9b0b310e
21 changed files with 258 additions and 216 deletions

View File

@ -10936,16 +10936,6 @@ public class PlayerInstance extends Playable
// Remove from world regions zones
ZoneManager.getInstance().getRegion(this).removeFromZones(this);
// Remove the PlayerInstance from the world
try
{
decayMe();
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// If a Party is in progress, leave it (and festival party)
if (isInParty())
{
@ -10959,6 +10949,18 @@ public class PlayerInstance extends Playable
}
}
stopCubics();
// Remove the PlayerInstance from the world
try
{
decayMe();
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
if (OlympiadManager.getInstance().isRegistered(this) || (getOlympiadGameId() != -1))
{
OlympiadManager.getInstance().removeDisconnectedCompetitor(this);