mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-07 22:13:40 -04:00
Now translates buildouts according to the buildout area it's in
This commit is contained in:
@@ -198,12 +198,10 @@ public class ObjectAwareness extends Service {
|
||||
transform.setSpeed((float) (obj.getMovementScale()*7.3));
|
||||
}
|
||||
BuildoutArea area = obj.getBuildoutArea();
|
||||
if (area != null && area.isAdjustCoordinates())
|
||||
newLocation.translatePosition(area.getX1(), 0, area.getZ1());
|
||||
area.adjustLocation(newLocation);
|
||||
new PlayerTransformedIntent(obj, obj.getParent(), null, obj.getLocation(), newLocation).broadcast();
|
||||
move(obj, newLocation, true);
|
||||
if (area != null && area.isAdjustCoordinates())
|
||||
newLocation.translatePosition(-area.getX1(), 0, -area.getZ1());
|
||||
area.readjustLocation(newLocation);
|
||||
obj.sendDataTransforms(transform);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user