Fixed dungeon entrance not updating client.
This commit is contained in:
@@ -112,38 +112,38 @@ public class RiftGenerator implements IWorldGenerator
|
|||||||
if (Math.abs(xc) + Math.abs(zc) < random.nextInt(2) + 3)
|
if (Math.abs(xc) + Math.abs(zc) < random.nextInt(2) + 3)
|
||||||
{
|
{
|
||||||
//Place Stone Bricks
|
//Place Stone Bricks
|
||||||
world.setBlock(x + xc, y - 1, z + zc, blockID);
|
world.setBlock(x + xc, y - 1, z + zc, blockID,0,2);
|
||||||
}
|
}
|
||||||
else if (Math.abs(xc) + Math.abs(zc) < random.nextInt(3) + 3)
|
else if (Math.abs(xc) + Math.abs(zc) < random.nextInt(3) + 3)
|
||||||
{
|
{
|
||||||
//Place Cracked Stone Bricks
|
//Place Cracked Stone Bricks
|
||||||
world.setBlock(x + xc, y - 1, z + zc, blockID, 2, 1);
|
world.setBlock(x + xc, y - 1, z + zc, blockID, 2, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Use Chiseled Stone Bricks to top off the pillars around the door
|
//Use Chiseled Stone Bricks to top off the pillars around the door
|
||||||
world.setBlock(x, y + 2, z + 1, blockID, 3, 1);
|
world.setBlock(x, y + 2, z + 1, blockID, 3, 2);
|
||||||
world.setBlock(x, y + 2, z - 1, blockID, 3, 1);
|
world.setBlock(x, y + 2, z - 1, blockID, 3, 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Build the gateway out of Unraveled Fabric. Since nearly all the blocks in Limbo are of
|
//Build the gateway out of Unraveled Fabric. Since nearly all the blocks in Limbo are of
|
||||||
//that type, there is no point replacing the ground. Just build the tops of the columns here.
|
//that type, there is no point replacing the ground. Just build the tops of the columns here.
|
||||||
blockID = properties.LimboBlockID;
|
blockID = properties.LimboBlockID;
|
||||||
world.setBlock(x, y + 2, z + 1, blockID, 0, 1);
|
world.setBlock(x, y + 2, z + 1, blockID, 0, 2);
|
||||||
world.setBlock(x, y + 2, z - 1, blockID, 0, 1);
|
world.setBlock(x, y + 2, z - 1, blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Place the shiny transient door into a dungeon
|
//Place the shiny transient door into a dungeon
|
||||||
ItemRiftBlade.placeDoorBlock(world, x, y + 1, z, 0, mod_pocketDim.transientDoor);
|
ItemRiftBlade.placeDoorBlock(world, x, y + 1, z, 0, mod_pocketDim.transientDoor);
|
||||||
|
|
||||||
//Build the columns around the door
|
//Build the columns around the door
|
||||||
world.setBlock(x, y + 1, z - 1, blockID, 0, 1);
|
world.setBlock(x, y + 1, z - 1, blockID, 0, 2);
|
||||||
world.setBlock(x, y + 1, z + 1, blockID, 0, 1);
|
world.setBlock(x, y + 1, z + 1, blockID, 0, 2);
|
||||||
world.setBlock(x, y, z - 1, blockID, 0, 1);
|
world.setBlock(x, y, z - 1, blockID, 0, 2);
|
||||||
world.setBlock(x, y, z + 1, blockID, 0, 1);
|
world.setBlock(x, y, z + 1, blockID, 0, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user