Fixed the custom villager hut.

This commit is contained in:
allstar69 2013-07-07 01:26:12 -07:00
commit 7c1ceec2c2

View file

@ -66,26 +66,26 @@ public class ComponentVillagerHut extends ComponentVillage
this.fillWithBlocks(world, sbb, 1, 1, 1, 5, 5, 5, 0, 0, false);
this.fillWithMetadataBlocks(world, sbb, 1, 4, 1, 5, 4, 5, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
/*---------------------------------------------------------Glass and Door--------------------------------------------------------------------------*/
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 1, 2, 0, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 1, 2, 0, sbb);
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 2, 2, 0, sbb);
this.placeDoorAtCurrentPosition(world, sbb, random, 3, 1, 0, this.getMetadataWithOffset(Block.doorWood.blockID, 1));
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 4, 2, 0, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 5, 2, 0, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 1, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 2, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 5, 2, 0, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 1, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 2, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 3, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 4, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 5, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 0, 2, 1, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 0, 2, 2, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 4, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 5, 2, 6, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 1, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 2, sbb);
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 0, 2, 3, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 0, 2, 4, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 0, 2, 5, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 6, 2, 1, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 6, 2, 2, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 4, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 5, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 1, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 2, sbb);
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 6, 2, 3, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 6, 2, 4, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.ReinforcedGlass.blockID, 0, 6, 2, 5, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 4, sbb);
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 5, sbb);
/*-------------------------------------------------------------Ladders---------------------------------------------------------------------------*/
int i = this.getMetadataWithOffset(Block.ladder.blockID, 3);
this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 1, 5, sbb);