Skip to content

Commit

Permalink
[Heightmap] Fixed height
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarbuz committed Jan 14, 2019
1 parent e19e53b commit 1cdd452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SchematicToVox/Schematics/SchematicWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ private static void AddMultipleBlocks(ref Schematic schematic, ref int global, i
{
for (int z = 0; z < height; z++)
{
Block block = (_color) ? new Block(x, height - 1, y, 1, 1, color) :
new Block(x, height - 1, y, 1, 1, new Tools.Color32(211, 211, 211, 255));
Block block = (_color) ? new Block(x, z, y, 1, 1, color) :
new Block(x, z, y, 1, 1, new Tools.Color32(211, 211, 211, 255));
AddBlock(ref schematic, ref global, block);
}
}
Expand Down

0 comments on commit 1cdd452

Please sign in to comment.