From 3024c78c2bd4ec846118ea6ce3a5f60330adaac8 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 24 Jan 2013 02:29:23 -0500 Subject: [PATCH] fixed a bug where plants_lib depended on poisonivy for a table it needed. thanks to bas080 for spotting that one. --- plants_lib/init.lua | 13 +++++++++++++ poinsonivy/init.lua | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/plants_lib/init.lua b/plants_lib/init.lua index d1018c0..273cb29 100644 --- a/plants_lib/init.lua +++ b/plants_lib/init.lua @@ -298,6 +298,19 @@ end -- function to decide if a node has a wall that's in verticals_list{} -- 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) local walldir = nil local verts = dump(verticals_list) diff --git a/poinsonivy/init.lua b/poinsonivy/init.lua index 4a68e90..7a0386b 100644 --- a/poinsonivy/init.lua +++ b/poinsonivy/init.lua @@ -6,19 +6,6 @@ local grow_delay = 1000 -- 1000 local grow_chance = 10 -- 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', { description = "Poison ivy (seedling)", drawtype = 'plantlike',