diff options
Diffstat (limited to 'Minecraft.World/DungeonFeature.cpp')
| -rw-r--r-- | Minecraft.World/DungeonFeature.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.World/DungeonFeature.cpp b/Minecraft.World/DungeonFeature.cpp index 8c9abbe5..6c7dc673 100644 --- a/Minecraft.World/DungeonFeature.cpp +++ b/Minecraft.World/DungeonFeature.cpp @@ -142,12 +142,12 @@ void DungeonFeature::addTunnel(int xOffs, int zOffs, byteArray blocks, double xC { if (yy < 10) { - blocks[p] = static_cast<byte>(Tile::lava_Id); + blocks[p] = (byte) Tile::lava_Id; } else { - blocks[p] = static_cast<byte>(0); - if (hasGrass && blocks[p - 1] == Tile::dirt_Id) blocks[p - 1] = static_cast<byte>(Tile::grass_Id); + blocks[p] = (byte) 0; + if (hasGrass && blocks[p - 1] == Tile::dirt_Id) blocks[p - 1] = (byte) Tile::grass_Id; } } } |
