Construction pylons added to structure placement service

Like harvesters, houses feature the construction pylons now when placing
a structure. Partially fixing #840
This commit is contained in:
CharonInferar
2014-06-25 16:53:26 +02:00
parent 0b17a0b26e
commit b1d3c4a6e4
4 changed files with 48 additions and 2 deletions
+6
View File
@@ -291,6 +291,12 @@ public class ObjectService implements INetworkDispatch {
object = new WeaponObject(objectID, planet, position, orientation, Template);
} else if(Template.startsWith("object/building/player/construction")) {
float positionY = core.terrainService.getHeight(planet.getID(), position.x, position.z)-1f;
Point3D newpoint = new Point3D(position.x,positionY,position.z);
object = new InstallationObject(objectID, planet, newpoint, orientation, Template);
} else if(Template.startsWith("object/building") || Template.startsWith("object/static/worldbuilding/structures") || Template.startsWith("object/static/structure")){
object = new BuildingObject(objectID, planet, position, orientation, Template);