diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-04-24 18:59:36 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-04-24 18:59:36 -0400 |
commit | a5eef1c5de77fa7770877802e66c3e1c53f9a0da (patch) | |
tree | 0f36e64a58e5f5bb7d95be6ae692f58f2ebfe483 /ferns/gianttreefern.lua | |
parent | dda854cf06f90a04a03844e19c4d4ad220e38fe4 (diff) | |
download | dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.gz dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.bz2 dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.xz dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.zip |
update castles, areas, homedecor, plantlife,
gloopblocks, hotbar, inspector, maptools, mesecons,
moreblocks, moreores, technic, teleport_request, and
worldedit
switched to caverealms_lite (with minor fixes by me)
switched to CWz's fork of player_textures
The homedecor update brings in the big split, and will
require you to re-enable all modpack components in
order to avoid loss of content.
Diffstat (limited to 'ferns/gianttreefern.lua')
-rw-r--r-- | ferns/gianttreefern.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ferns/gianttreefern.lua b/ferns/gianttreefern.lua index a1276b8..847cea2 100644 --- a/ferns/gianttreefern.lua +++ b/ferns/gianttreefern.lua @@ -14,10 +14,10 @@ local S = plantlife_i18n.gettext -- lot of code, lot to load abstract_ferns.grow_giant_tree_fern = function(pos) - local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z} - if minetest.get_node(pos_01).name ~= "air" - and minetest.get_node(pos_01).name ~= "ferns:sapling_giant_tree_fern" - and minetest.get_node(pos_01).name ~= "default:junglegrass" then + local pos_aux = {x = pos.x, y = pos.y + 1, z = pos.z} + local name = minetest.get_node(pos_aux).name + if name ~= "air" and name ~= "ferns:sapling_giant_tree_fern" + and name ~= "default:junglegrass" then return end @@ -64,7 +64,9 @@ abstract_ferns.grow_giant_tree_fern = function(pos) local brk = false for i = 1, size-3 do - if minetest.get_node({x = pos.x, y = pos.y + i, z = pos.z}).name ~= "air" then + pos_aux.y = pos.y + i + local name = minetest.get_node(pos_aux).name + if not (name == "air" or (i == 1 and name == "ferns:sapling_giant_tree_fern")) then brk = true break end |