Skip to content

Commit

Permalink
Update Construction.java
Browse files Browse the repository at this point in the history
  • Loading branch information
CptCrispyCrunchy authored Aug 6, 2016
1 parent aca0faa commit 59cc186
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public boolean buildParcel(DynParcel dynParcel, EntityRef settlement, Culture cu
List<EntityRef> templates = templatesOptional.get();
for (EntityRef template : templates) {
BlockRegionTransformationList transformationList = new BlockRegionTransformationList();
transformationList.addTransformation(BlockRegionUtilities.setOnCenterXZ(template.getComponent(SpawnBlockRegionsComponent.class)));
transformationList.addTransformation(new BlockRegionMovement(BlockRegionUtilities.determineBottomCenter(template.getComponent(SpawnBlockRegionsComponent.class))));
transformationList.addTransformation(new HorizontalBlockRegionRotation(TeraMath.clamp(TeraMath.fastAbs(dynParcel.orientation.ordinal()), 0, 4)));
transformationList.addTransformation(new BlockRegionMovement(new Vector3i(shape.minX() + Math.round(shape.sizeX() / 2f),
dynParcel.height, shape.minY() + Math.round(shape.sizeY() / 2f))));
Expand Down

0 comments on commit 59cc186

Please sign in to comment.