Skip to content

Commit

Permalink
Arch structure variety
Browse files Browse the repository at this point in the history
  • Loading branch information
CorgiTaco committed Aug 6, 2024
1 parent 7a44257 commit f02ef97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public ArchStructure(StructureSettings settings, ArchConfig config) {
BlockPos structureCenter = new BlockPos(blockX, blockY, blockZ);
Vec3 originVec3 = Vec3.atCenterOf(structureCenter);

BlockPos offset = new BlockPos(this.config.length().sample(random) / 2, 0, this.config.length().sample(random) / 2);
BlockPos offset = new BlockPos((this.config.length().sample(random) / 2) * (random.nextBoolean() ? 1 : -1), 0, (this.config.length().sample(random) / 2) * (random.nextBoolean() ? 1 : -1));

BlockPos first = structureCenter.offset(offset);
first = first.atY(chunkGenerator.getBaseHeight(first.getX(), first.getZ(), Heightmap.Types.OCEAN_FLOOR_WG, context.heightAccessor(), context.randomState()) - 10);
Expand Down

0 comments on commit f02ef97

Please sign in to comment.