forked from mtcontrib/plantlife_modpack
		
	fixed a bug where plants_lib depended on poisonivy for a table it needed.
thanks to bas080 for spotting that one.
This commit is contained in:
		@@ -298,6 +298,19 @@ end
 | 
				
			|||||||
-- function to decide if a node has a wall that's in verticals_list{}
 | 
					-- function to decide if a node has a wall that's in verticals_list{}
 | 
				
			||||||
-- returns wall direction of valid node, or nil if invalid.
 | 
					-- returns wall direction of valid node, or nil if invalid.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local verticals_list = {
 | 
				
			||||||
 | 
						"default:dirt",
 | 
				
			||||||
 | 
						"default:dirt_with_grass",
 | 
				
			||||||
 | 
						"default:stone",
 | 
				
			||||||
 | 
						"default:cobble",
 | 
				
			||||||
 | 
						"default:mossycobble",
 | 
				
			||||||
 | 
						"default:brick",
 | 
				
			||||||
 | 
						"default:tree",
 | 
				
			||||||
 | 
						"default:jungletree",
 | 
				
			||||||
 | 
						"default:coal",
 | 
				
			||||||
 | 
						"default:iron"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function plantslib:plant_valid_wall(wallpos)
 | 
					function plantslib:plant_valid_wall(wallpos)
 | 
				
			||||||
	local walldir = nil
 | 
						local walldir = nil
 | 
				
			||||||
	local verts = dump(verticals_list)
 | 
						local verts = dump(verticals_list)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,19 +6,6 @@ local grow_delay = 1000 -- 1000
 | 
				
			|||||||
local grow_chance = 10 -- 10
 | 
					local grow_chance = 10 -- 10
 | 
				
			||||||
local poisonivy_seed_diff = plantslib.plantlife_seed_diff + 10
 | 
					local poisonivy_seed_diff = plantslib.plantlife_seed_diff + 10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local verticals_list = {
 | 
					 | 
				
			||||||
	"default:dirt",
 | 
					 | 
				
			||||||
	"default:dirt_with_grass",
 | 
					 | 
				
			||||||
	"default:stone",
 | 
					 | 
				
			||||||
	"default:cobble",
 | 
					 | 
				
			||||||
	"default:mossycobble",
 | 
					 | 
				
			||||||
	"default:brick",
 | 
					 | 
				
			||||||
	"default:tree",
 | 
					 | 
				
			||||||
	"default:jungletree",
 | 
					 | 
				
			||||||
	"default:coal",
 | 
					 | 
				
			||||||
	"default:iron"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
minetest.register_node(':poisonivy:seedling', {
 | 
					minetest.register_node(':poisonivy:seedling', {
 | 
				
			||||||
	description = "Poison ivy (seedling)",
 | 
						description = "Poison ivy (seedling)",
 | 
				
			||||||
	drawtype = 'plantlike',
 | 
						drawtype = 'plantlike',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user