Fixed issue where new players get stuck in space after a server reboot (thanks Elour for your help)

This commit is contained in:
Cekis
2020-11-02 01:48:57 -05:00
parent c7d8ee1fb9
commit c3d6e4e701

View File

@@ -1521,8 +1521,14 @@ public class base_player extends script.base_script
utils.removeScriptVar(self, COUPE_DE_GRACE_TARGET);
if (!isInTutorialArea(self))
{
space_dungeon.verifyPlayerSession(self);
space_dungeon.validateInstanceControllerId(self);
if(hasObjVar(self, "npe.phase_number")) {
if(getIntObjVar(self, "npe.phase_number") == 3) {
getClusterWideData("npe_public_instances", "npe_space_station*", false, self);
}
} else {
space_dungeon.verifyPlayerSession(self);
space_dungeon.validateInstanceControllerId(self);
}
}
int campXp = getExperiencePoints(self, "camp");
if (campXp > 0)