From f9df1b5965c43bb61fd673fa7ace8f3f0fd7e336 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 17 Dec 2012 16:01:16 -0500 Subject: [PATCH] Updated API to allow for height controls. --- flowers/init.lua | 3 +-- junglegrass/init.lua | 1 - plants_lib/init.lua | 10 +--------- poinsonivy/init.lua | 1 - 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/flowers/init.lua b/flowers/init.lua index 52377f3..8126725 100644 --- a/flowers/init.lua +++ b/flowers/init.lua @@ -1,4 +1,4 @@ --- This module supplies flowers for the plantlife modpack +-- This file supplies flowers for the plantlife modpack local spawn_delay = 2000 -- 2000 local spawn_chance = 100 -- 100 @@ -136,4 +136,3 @@ minetest.register_craft({ } }) -enabled_flowers = true diff --git a/junglegrass/init.lua b/junglegrass/init.lua index 397e610..4f93768 100644 --- a/junglegrass/init.lua +++ b/junglegrass/init.lua @@ -76,4 +76,3 @@ for i in ipairs(grasses_list) do grow_plants(grow_delay, grow_chance/2, grasses_list[i][1], grasses_list[i][2], "default:desert_sand", {"default:dirt_with_grass", "default:sand", "default:desert_sand"}) end -enabled_junglegrass = true diff --git a/plants_lib/init.lua b/plants_lib/init.lua index c4d13a6..0945c3a 100644 --- a/plants_lib/init.lua +++ b/plants_lib/init.lua @@ -177,13 +177,5 @@ find_first_node = function(pos, height_limit, nodelist) return nil end +print("[Plantlife] Loaded!") -local enstr = "" - -if enabled_flowers then enstr = enstr.." flowers" end -if enabled_junglegrass then enstr = enstr.." junglegrass" end -if enabled_poisonivy then enstr = enstr.." poisonivy" end - -if enstr == "" then enstr = "...er...nothing!" end - -print("[Plantlife] Loaded (enabled"..enstr..")") diff --git a/poinsonivy/init.lua b/poinsonivy/init.lua index 13e6850..b98e024 100644 --- a/poinsonivy/init.lua +++ b/poinsonivy/init.lua @@ -68,4 +68,3 @@ grow_plants(spawn_delay, grow_chance, "poisonivy:seedling", "poisonivy:sproutl grow_plants(spawn_delay, grow_chance*2, "poisonivy:climbing", nil, nil, nil ,nil,true,true,nil,{"default:dirt_with_grass"}) -enabled_poisonivy = true