mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-11 01:13:02 -04:00
Major refactor to the way locations are updated and buildouts are loaded
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user