From d55d86a3c571c9fffada58b8758fec0bfa84b25a Mon Sep 17 00:00:00 2001 From: mezz Date: Sat, 4 Jun 2016 23:31:27 -0700 Subject: [PATCH] Fix #1272 villager house generation is intersecting with the road --- gradle.properties | 2 +- .../forestry/apiculture/worldgen/VillageApiaristHouse.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index a10cc5a1c..59cd29c8d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ jei_version=3.4.0.+ version_major=5 version_minor=0 -version_patch=7 +version_patch=8 diff --git a/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java b/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java index 4532edd8f..83f5bffe5 100644 --- a/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java +++ b/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java @@ -112,7 +112,7 @@ public class VillageApiaristHouse extends StructureVillagePieces.House1 { } public static VillageApiaristHouse buildComponent(StructureVillagePieces.Start startPiece, List par1List, Random random, int structureMinX, int structureMinY, int structureMinZ, EnumFacing facing, int componentType) { - StructureBoundingBox bbox = StructureBoundingBox.getComponentToAddBoundingBox(structureMinX, structureMinY, structureMinZ, 0, 0, 0, 10, 9, 11, facing); + StructureBoundingBox bbox = StructureBoundingBox.getComponentToAddBoundingBox(structureMinX, structureMinY, structureMinZ, -4, 0, 0, 12, 9, 12, facing); if (!canVillageGoDeeper(bbox) || StructureComponent.findIntersecting(par1List, bbox) != null) { return null; } @@ -129,7 +129,7 @@ public class VillageApiaristHouse extends StructureVillagePieces.House1 { return true; } - boundingBox.offset(0, averageGroundLevel - boundingBox.maxY + 8 - 1, 0); + boundingBox.offset(0, averageGroundLevel - boundingBox.maxY + 9 - 1, 0); } fillWithBlocks(world, structBoundingBox, 1, 1, 1, 7, 4, 4, Blocks.AIR.getDefaultState(), Blocks.AIR.getDefaultState(), false);