diff --git a/src/treegen.cpp b/src/treegen.cpp
index 39cb1ca06cf2618d71e3dbfbfe4ea31b7a1991f8..208f34552cd29813ceba5c9b4495c28e88753aff 100644
--- a/src/treegen.cpp
+++ b/src/treegen.cpp
@@ -755,7 +755,7 @@ void make_pine_tree(MMVManip &vmanip, v3s16 p0, INodeDefManager *ndef, int seed)
 		and in games that have saplings; both are deprecated but not
 		replaced yet
 	*/
-	content_t c_tree   = ndef->getId("mapgen_pinetree");
+	content_t c_tree   = ndef->getId("mapgen_pine_tree");
 	content_t c_leaves = ndef->getId("mapgen_pine_needles");
 	content_t c_snow = ndef->getId("mapgen_snow");
 	if (c_tree == CONTENT_IGNORE)