Updated awareness/observers and deprecated addObject/removeObject

This commit is contained in:
Obique PSWG
2016-05-18 21:08:43 -05:00
parent 201fc03cf3
commit 381635895f
12 changed files with 172 additions and 196 deletions
+1 -2
View File
@@ -147,9 +147,8 @@ public class StaticService extends Service {
Location loc = new Location(x, y, z, parent.getTerrain());
loc.setHeading(heading);
SWGObject obj = ObjectCreator.createObjectFromTemplate(iff);
obj.setParent(parent);
obj.setLocation(loc);
parent.addObject(obj);
obj.moveToContainer(parent);
new ObjectCreatedIntent(obj).broadcast();
return obj;
}