Created qa tool to recover players that are in a pickle. Can teleport to all common planets

This commit is contained in:
Obique PSWG
2015-08-21 00:44:10 -05:00
parent ff717592fa
commit 1e200021b1
2 changed files with 60 additions and 2 deletions
+3 -2
View File
@@ -325,12 +325,13 @@ public class ObjectManager extends Manager {
private void processObjectTeleportIntent(ObjectTeleportIntent oti) {
SWGObject object = oti.getObject();
objectAwareness.move(object, oti.getNewLocation());
if (object instanceof CreatureObject && object.getOwner() != null){
objectAwareness.move(object, oti.getNewLocation());
sendPacket(object.getOwner(), new CmdStartScene(false, object.getObjectId(), ((CreatureObject)object).getRace(), object.getLocation(), (long)(ProjectSWG.getCoreTime()/1E3)));
object.createObject(object.getOwner());
new PlayerEventIntent(object.getOwner(), PlayerEvent.PE_ZONE_IN).broadcast();
} else {
object.setLocation(oti.getNewLocation());
}
}