From 2da150378039371761b2f8d1a13036382228e248 Mon Sep 17 00:00:00 2001
From: paramat <mat.gregory@virginmedia.com>
Date: Thu, 18 Jun 2015 02:55:52 +0100
Subject: [PATCH] Mgv6: Don't create air gap in tundra at y = 48 in custom high
 terrain

---
 src/mapgen_v6.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp
index 50126ecf0..732ec0955 100644
--- a/src/mapgen_v6.cpp
+++ b/src/mapgen_v6.cpp
@@ -1007,7 +1007,7 @@ void MapgenV6::growGrass() // Add surface nodes
 			} else if (bt == BT_TUNDRA) {
 				if (c == c_dirt) {
 					vm->m_data[i] = n_dirt_with_snow;
-				} else if (c == c_stone) {
+				} else if (c == c_stone && surface_y < node_max.Y) {
 					vm->m_area.add_y(em, i, 1);
 					vm->m_data[i] = n_snow;
 				}
-- 
GitLab