forked from mtcontrib/plantlife_modpack
		
	got rid of more debugging stuff
This commit is contained in:
		| @@ -118,8 +118,6 @@ end | |||||||
|  |  | ||||||
| function plantslib:search_for_surfaces(minp, maxp, biomedef, node_or_function_or_model) | function plantslib:search_for_surfaces(minp, maxp, biomedef, node_or_function_or_model) | ||||||
| 	return function(minp, maxp, blockseed) | 	return function(minp, maxp, blockseed) | ||||||
| 		local t1=os.clock() |  | ||||||
|  |  | ||||||
| 		local biome = biomedef | 		local biome = biomedef | ||||||
| 		plantslib:set_defaults(biome) | 		plantslib:set_defaults(biome) | ||||||
|  |  | ||||||
| @@ -186,7 +184,6 @@ function plantslib:search_for_surfaces(minp, maxp, biomedef, node_or_function_or | |||||||
| 						end | 						end | ||||||
|  |  | ||||||
| 						if type(node_or_function_or_model) == "table" then | 						if type(node_or_function_or_model) == "table" then | ||||||
| 							local t2=os.clock() |  | ||||||
| 							plantslib:generate_tree(pos, node_or_function_or_model) | 							plantslib:generate_tree(pos, node_or_function_or_model) | ||||||
| 							spawned = true | 							spawned = true | ||||||
| 						elseif type(node_or_function_or_model) == "string" and | 						elseif type(node_or_function_or_model) == "string" and | ||||||
| @@ -194,7 +191,6 @@ function plantslib:search_for_surfaces(minp, maxp, biomedef, node_or_function_or | |||||||
| 							minetest.add_node(p_top, { name = node_or_function_or_model }) | 							minetest.add_node(p_top, { name = node_or_function_or_model }) | ||||||
| 							spawned = true | 							spawned = true | ||||||
| 						elseif type(loadstring("return "..node_or_function_or_model)) == "function" then | 						elseif type(loadstring("return "..node_or_function_or_model)) == "function" then | ||||||
| 							local t2=os.clock() |  | ||||||
| 							assert(loadstring(node_or_function_or_model.."("..dump_pos(pos)..")"))() | 							assert(loadstring(node_or_function_or_model.."("..dump_pos(pos)..")"))() | ||||||
| 							spawned = true | 							spawned = true | ||||||
| 						else | 						else | ||||||
| @@ -428,14 +424,12 @@ end | |||||||
| -- into it. | -- into it. | ||||||
|  |  | ||||||
| function plantslib:generate_tree(pos, node_or_function_or_model) | function plantslib:generate_tree(pos, node_or_function_or_model) | ||||||
| 	local t=os.clock() |  | ||||||
| 	minetest.spawn_tree(pos, node_or_function_or_model) | 	minetest.spawn_tree(pos, node_or_function_or_model) | ||||||
| end | end | ||||||
|  |  | ||||||
| -- and this one's for the call used in the growing code | -- and this one's for the call used in the growing code | ||||||
|  |  | ||||||
| function plantslib:grow_tree(pos, node_or_function_or_model) | function plantslib:grow_tree(pos, node_or_function_or_model) | ||||||
| 	local t=os.clock() |  | ||||||
| 	minetest.spawn_tree(pos, node_or_function_or_model) | 	minetest.spawn_tree(pos, node_or_function_or_model) | ||||||
| end | end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user