Skip to content

Commit

Permalink
Fix the Smeltery Again :D
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Feb 16, 2014
1 parent 9afbf80 commit 038be9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions src/main/java/tconstruct/worldgen/village/ComponentSmeltery.java
Expand Up @@ -29,7 +29,7 @@ public ComponentSmeltery(Start villagePiece, int par2, Random par3Random, Struct

public static ComponentSmeltery buildComponent (Start villagePiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
{
StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p1, p2, p3, 0, 0, 0, 7, 6, 7, p4);
StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p1, p2, p3, 0, 0, 0, 9, 3, 7, p4);
return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(pieces, structureboundingbox) == null ? new ComponentSmeltery(villagePiece, p5, random,
structureboundingbox, p4) : null;
}
Expand All @@ -53,17 +53,16 @@ public boolean addComponentParts (World world, Random random, StructureBoundingB
}

/**
* arguments: (World worldObj, StructureBoundingBox structBB, int minX,
* int minY, int minZ, int maxX, int maxY, int maxZ, int placeBlockId,
* int replaceBlockId, boolean alwaysreplace)
* arguments: (World worldObj, StructureBoundingBox structBB, int minX, int minY, int minZ, int maxX, int maxY, int
* maxZ, int placeBlockId, int replaceBlockId, boolean alwaysreplace)
*/

this.fillWithBlocks(world, sbb, 1, 0, 0, 7, 0, 6, Blocks.stonebrick, Blocks.stonebrick, false); // Base
this.fillWithBlocks(world, sbb, 1, 0, 0, 7, 0, 6, Blocks.stonebrick, Blocks.stonebrick, false); //Base
this.fillWithBlocks(world, sbb, 0, 0, 1, 0, 0, 5, Blocks.stonebrick, Blocks.stonebrick, false);
this.fillWithBlocks(world, sbb, 8, 0, 1, 8, 0, 5, Blocks.stonebrick, Blocks.stonebrick, false);
this.fillWithBlocks(world, sbb, 0, 1, 0, 9, 3, 7, Blocks.air, Blocks.air, false);

this.fillWithMetaBlocks(world, sbb, 2, 0, 1, 6, 2, 5, TRepo.smeltery, 2, TRepo.smeltery, 2, false); // Basin
this.fillWithMetaBlocks(world, sbb, 2, 0, 1, 6, 2, 5, TRepo.smeltery, 2, TRepo.smeltery, 2, false); //Basin
this.fillWithBlocks(world, sbb, 3, 1, 2, 5, 2, 4, Blocks.air, Blocks.air, false);

this.placeBlockAtCurrentPosition(world, TRepo.searedBlock, 0, 1, 1, 2, sbb);
Expand All @@ -88,7 +87,6 @@ public boolean addComponentParts (World world, Random random, StructureBoundingB
this.func_151554_b(world, Blocks.stonebrick, 0, i1, -1, l, sbb);
}
}

return true;
}

Expand Down
Expand Up @@ -12,7 +12,7 @@ public class VillageSmelteryHandler implements IVillageCreationHandler
@Override
public PieceWeight getVillagePieceWeight (Random random, int i)
{
return new PieceWeight(ComponentSmeltery.class, 9, i + random.nextInt(10) == 0 ? 1 : 0);
return new PieceWeight(ComponentSmeltery.class, 9, 1);
}

@Override
Expand Down

0 comments on commit 038be9d

Please sign in to comment.