mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-14 04:13:14 -04:00
Merge conflict resolve
This commit is contained in:
@@ -1331,6 +1331,14 @@ public class SimulationService implements INetworkDispatch {
|
||||
|
||||
public void teleport(SWGObject obj, Point3D position, Quaternion orientation, long cellId) {
|
||||
|
||||
if (obj.getPosition().getDistance2D(position) > 150) {
|
||||
if (cellId != 0)
|
||||
transferToPlanet(obj, obj.getPlanet(), position, orientation, core.objectService.getObject(cellId));
|
||||
else
|
||||
transferToPlanet(obj, obj.getPlanet(), position, orientation, null);
|
||||
return;
|
||||
}
|
||||
|
||||
if(cellId == 0) {
|
||||
if(position.x >= -8192 && position.x <= 8192 && position.z >= -8192 && position.z <= 8192) {
|
||||
obj.setMovementCounter(obj.getMovementCounter() + 1);
|
||||
@@ -1346,6 +1354,8 @@ public class SimulationService implements INetworkDispatch {
|
||||
|
||||
obj.setPosition(position);
|
||||
obj.setOrientation(orientation);
|
||||
|
||||
// Shouldn't the parent be set?
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user