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:
@@ -644,7 +644,13 @@ public abstract class SWGObject extends BaselineObject implements Comparable<SWG
|
||||
private final void sendSceneCreateObject(Player target) {
|
||||
SceneCreateObjectByCrc create = new SceneCreateObjectByCrc();
|
||||
create.setObjectId(objectId);
|
||||
create.setLocation(location);
|
||||
if (buildoutArea == null || !buildoutArea.isAdjustCoordinates())
|
||||
create.setLocation(location);
|
||||
else {
|
||||
Location nLoc = new Location(location);
|
||||
buildoutArea.adjustLocation(nLoc);
|
||||
create.setLocation(nLoc);
|
||||
}
|
||||
create.setObjectCrc(crc);
|
||||
if (target != null) {
|
||||
target.sendPacket(create);
|
||||
|
||||
Reference in New Issue
Block a user