mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-11 01:13:02 -04:00
Fixed vehicle movement and added a test case for it
This commit is contained in:
@@ -305,8 +305,11 @@ public class ObjectAwareness extends Service implements TerrainMapCallback {
|
||||
}
|
||||
|
||||
private void moveObjectWithTransform(SWGObject obj, SWGObject parent, Location requestedLocation, double speed, int update) {
|
||||
if (obj instanceof CreatureObject && ((CreatureObject) obj).isStatesBitmask(CreatureState.RIDING_MOUNT))
|
||||
if (obj instanceof CreatureObject && ((CreatureObject) obj).isStatesBitmask(CreatureState.RIDING_MOUNT)) {
|
||||
parent = obj.getParent();
|
||||
moveObject(parent, null, requestedLocation);
|
||||
dataTransformHandler.handleMove(parent, speed, update);
|
||||
}
|
||||
moveObject(obj, parent, requestedLocation);
|
||||
if (parent == null)
|
||||
dataTransformHandler.handleMove(obj, speed, update);
|
||||
|
||||
Reference in New Issue
Block a user