Major refactor to the way locations are updated and buildouts are loaded

This commit is contained in:
Obique PSWG
2017-05-09 22:57:07 -05:00
parent bc4aab8b01
commit 7d80f3b34c
27 changed files with 102618 additions and 102324 deletions
+2 -3
View File
@@ -133,10 +133,9 @@ public class StaticService extends Service {
private SWGObject createObjectInParent(SWGObject parent) {
Assert.notNull(parent);
Location loc = new Location(x, y, z, parent.getTerrain());
loc.setHeading(heading);
SWGObject obj = ObjectCreator.createObjectFromTemplate(iff);
obj.setLocation(loc);
obj.setPosition(parent.getTerrain(), x, y, z);
obj.setHeading(heading);
obj.moveToContainer(parent);
new ObjectCreatedIntent(obj).broadcast();
return obj;