Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Fix typos in CC Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Bourgeois committed Nov 26, 2022
1 parent a1c003a commit 0996272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/World/Generation/CrossCraftGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ auto create_surface(World *wrld, int32_t *heightMap) -> void {

auto idx = wrld->getIdx(x, y, z);

if (blkA == 8 and is_gravel) {
if (blkA == 8 && is_gravel) {
wrld->worldData[idx] = 13;
}

if (blkA == 0) {
if (y <= 32 and is_sand) {
if (y <= 32 && is_sand) {
wrld->worldData[idx] = 12;
} else {
wrld->worldData[idx] = 2;
Expand Down Expand Up @@ -270,7 +270,7 @@ auto growTree(uint32_t x, uint32_t y, uint32_t z, uint32_t h, World *wrld)

wrld->worldData[wrld->getIdx(x, m, z)] = 17;

} else if (m == max - 2 or m == max - 3) {
} else if (m == max - 2 || m == max - 3) {
wrld->worldData[wrld->getIdx(x - 1, m, z)] = 18;
wrld->worldData[wrld->getIdx(x + 1, m, z)] = 18;
wrld->worldData[wrld->getIdx(x, m, z - 1)] = 18;
Expand Down

0 comments on commit 0996272

Please sign in to comment.