aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MineShaftPieces.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/MineShaftPieces.cpp')
-rw-r--r--Minecraft.World/MineShaftPieces.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Minecraft.World/MineShaftPieces.cpp b/Minecraft.World/MineShaftPieces.cpp
index fe13b49f..d6a60ee7 100644
--- a/Minecraft.World/MineShaftPieces.cpp
+++ b/Minecraft.World/MineShaftPieces.cpp
@@ -440,19 +440,19 @@ bool MineShaftPieces::MineShaftCorridor::postProcess(Level *level, Random *rando
{
hasPlacedSpider = true;
level->setTile(x, y, newZ, Tile::mobSpawner_Id);
- shared_ptr<MobSpawnerTileEntity> entity = dynamic_pointer_cast<MobSpawnerTileEntity>( level->getTileEntity(x, y, newZ) );
+ std::shared_ptr<MobSpawnerTileEntity> entity = dynamic_pointer_cast<MobSpawnerTileEntity>( level->getTileEntity(x, y, newZ) );
if (entity != NULL) entity->setEntityId(L"CaveSpider");
}
}
}
// prevent air floating
- for (int x = x0; x <= x1; x++)
+ for (int x = x0; x <= x1; x++)
{
- for (int z = 0; z <= length; z++)
+ for (int z = 0; z <= length; z++)
{
int block = getBlock(level, x, -1, z, chunkBB);
- if (block == 0)
+ if (block == 0)
{
placeBlock(level, Tile::wood_Id, 0, x, -1, z, chunkBB);
}
@@ -594,12 +594,12 @@ bool MineShaftPieces::MineShaftCrossing::postProcess(Level *level, Random *rando
// prevent air floating
// note: use world coordinates because the corridor hasn't defined
// orientation
- for (int x = boundingBox->x0; x <= boundingBox->x1; x++)
+ for (int x = boundingBox->x0; x <= boundingBox->x1; x++)
{
- for (int z = boundingBox->z0; z <= boundingBox->z1; z++)
+ for (int z = boundingBox->z0; z <= boundingBox->z1; z++)
{
int block = getBlock(level, x, boundingBox->y0 - 1, z, chunkBB);
- if (block == 0)
+ if (block == 0)
{
placeBlock(level, Tile::wood_Id, 0, x, boundingBox->y0 - 1, z, chunkBB);
}