Now translates buildouts according to the buildout area it's in

This commit is contained in:
Obique PSWG
2016-03-04 16:11:44 -06:00
parent 0083ba012b
commit 941336c7b6
2 changed files with 9 additions and 5 deletions
+7 -1
View File
@@ -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);