mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-11 01:13:02 -04:00
Updated awareness/observers and deprecated addObject/removeObject
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user