From 40b4cc677a5b32d241adce9e74cdff6be70d4f71 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 20 Jan 2013 12:02:59 -0500 Subject: [PATCH] forgot to set default value for rarity control, 50. --- plants_lib/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plants_lib/init.lua b/plants_lib/init.lua index 1e8a54f..8786691 100644 --- a/plants_lib/init.lua +++ b/plants_lib/init.lua @@ -53,6 +53,7 @@ function plantslib:search_for_surfaces(minp, maxp, biome, funct_or_model) if biome.near_nodes_count == nil then biome.near_nodes_count = 1 end if biome.temp_min == nil then biome.temp_min = 1 end if biome.temp_max == nil then biome.temp_max = -1 end + if biome.rarity == nil then biome.rarity = 50 end print("Started checking generated mapblock volume...") local searchnodes = minetest.env:find_nodes_in_area(minp, maxp, biome.surface)