diff options
Diffstat (limited to 'src/mg_decoration.cpp')
-rw-r--r-- | src/mg_decoration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mg_decoration.cpp b/src/mg_decoration.cpp index dec82a638..1848024dc 100644 --- a/src/mg_decoration.cpp +++ b/src/mg_decoration.cpp @@ -140,8 +140,8 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax) mg->heightmap[mapindex] : mg->findGroundLevel(v2s16(x, z), nmin.Y, nmax.Y); - if (y < nmin.Y || y > nmax.Y || - y < height_min || y > height_max) + if (y < nmin.Y || y > nmax.Y || + y < y_min || y > y_max) continue; int height = getHeight(); |