From d72e15f1d05d3225158e22c670bdf4a90ada8580 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 22 May 2019 19:28:13 -0400 Subject: [PATCH] get rid of old junglegrass -> dry shrub "corner case" --- growth.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/growth.lua b/growth.lua index 56ba4ef..3cced14 100644 --- a/growth.lua +++ b/growth.lua @@ -44,12 +44,7 @@ function biome_lib:grow_plants(opts) end if (n_top.name == "air" or n_top.name == "default:snow") and (not options.need_wall or (options.need_wall and walldir)) then - -- corner case for changing short junglegrass - -- to dry shrub in desert - if n_bot.name == options.dry_early_node and options.grow_plant == "junglegrass:short" then - minetest.swap_node(pos, { name = "default:dry_shrub" }) - - elseif options.grow_vertically and walldir then + if options.grow_vertically and walldir then if biome_lib:search_downward(pos, options.height_limit, options.ground_nodes) then minetest.swap_node(p_top, { name = options.grow_plant, param2 = walldir}) end